@nanoporetech-digital/components 8.0.0 → 8.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.
- package/dist/cjs/nano-algolia-results.cjs.entry.js +24 -26
- package/dist/cjs/nano-algolia.cjs.entry.js +4 -0
- package/dist/cjs/nano-avatar_5.cjs.entry.js +120 -117
- package/dist/cjs/nano-dropdown_2.cjs.entry.js +10 -6
- package/dist/cjs/nano-icon_3.cjs.entry.js +1 -1
- package/dist/cjs/{popover-D_uJstEp.js → popover-BxNxwqMv.js} +5 -3
- package/dist/collection/components/algolia/algolia-results.js +25 -27
- package/dist/collection/components/algolia/lib/template.js +4 -0
- package/dist/collection/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +9 -5
- package/dist/collection/components/global-search-results/global-search-results.css +121 -189
- package/dist/collection/components/global-search-results/global-search-results.js +121 -117
- package/dist/collection/utils/popover.js +5 -3
- package/dist/components/algolia.js +4 -0
- package/dist/components/dropdown.js +9 -5
- package/dist/components/global-search-results.js +122 -118
- package/dist/components/nano-algolia-results.js +25 -27
- package/dist/components/popover.js +5 -3
- package/dist/esm/nano-algolia-results.entry.js +25 -27
- package/dist/esm/nano-algolia.entry.js +4 -0
- package/dist/esm/nano-avatar_5.entry.js +120 -117
- package/dist/esm/nano-dropdown_2.entry.js +10 -6
- package/dist/esm/nano-icon_3.entry.js +1 -1
- package/dist/esm/{popover-BKomgCqQ.js → popover-CWVbjtKn.js} +5 -3
- package/dist/nano-components/nano-algolia-results.entry.js +1 -1
- package/dist/nano-components/nano-algolia.entry.js +1 -1
- package/dist/nano-components/nano-avatar_5.entry.js +1 -1
- package/dist/nano-components/nano-components.css +5 -5
- package/dist/nano-components/nano-dropdown_2.entry.js +1 -1
- package/dist/nano-components/nano-icon_3.entry.js +1 -1
- package/dist/nano-components/{popover-BKomgCqQ.js → popover-CWVbjtKn.js} +1 -1
- package/dist/style/components.css +1 -1
- package/dist/style/components.css.map +1 -1
- package/dist/style/core.css +1 -1
- package/dist/style/core.css.map +1 -1
- package/dist/style/nano.css +1 -1
- package/dist/style/nano.css.map +1 -1
- package/dist/types/{Users/John.Jenkins/projects → builds/FKs_t1C_/0/Digital}/nano-components/packages/components/.stencil/plugins/stencil/vue-output/generate-vue-component.d.ts +1 -1
- package/dist/types/{Users/John.Jenkins/projects → builds/FKs_t1C_/0/Digital}/nano-components/packages/components/.stencil/plugins/stencil/vue-output/output-vue.d.ts +1 -1
- package/dist/types/{Users/John.Jenkins/projects → builds/FKs_t1C_/0/Digital}/nano-components/packages/components/.stencil/plugins/stencil/vue-output/plugin.d.ts +1 -1
- package/dist/types/builds/FKs_t1C_/0/Digital/nano-components/packages/components/.stencil/stencil.config.d.ts +2 -0
- package/dist/types/builds/FKs_t1C_/0/Digital/nano-components/packages/components/.stencil/stencil.config.prod.d.ts +2 -0
- package/dist/types/components/global-search-results/global-search-results.d.ts +2 -0
- package/docs-json.json +2 -2
- package/hydrate/index.js +160 -151
- package/hydrate/index.mjs +160 -151
- package/package.json +2 -2
- package/dist/types/Users/John.Jenkins/projects/nano-components/packages/components/.stencil/stencil.config.d.ts +0 -2
- package/dist/types/Users/John.Jenkins/projects/nano-components/packages/components/.stencil/stencil.config.prod.d.ts +0 -2
- /package/dist/types/{Users/John.Jenkins/projects → builds/FKs_t1C_/0/Digital}/nano-components/packages/components/.stencil/plugins/stencil/vue-output/index.d.ts +0 -0
- /package/dist/types/{Users/John.Jenkins/projects → builds/FKs_t1C_/0/Digital}/nano-components/packages/components/.stencil/plugins/stencil/vue-output/types.d.ts +0 -0
- /package/dist/types/{Users/John.Jenkins/projects → builds/FKs_t1C_/0/Digital}/nano-components/packages/components/.stencil/plugins/stencil/vue-output/utils.d.ts +0 -0
- /package/dist/types/{Users/John.Jenkins/projects → builds/FKs_t1C_/0/Digital}/nano-components/packages/components/.stencil/testing/mocks/intersection-observer.d.ts +0 -0
- /package/dist/types/{Users/John.Jenkins/projects → builds/FKs_t1C_/0/Digital}/nano-components/packages/components/.stencil/wdio.conf.d.ts +0 -0
package/hydrate/index.js
CHANGED
@@ -6624,6 +6624,10 @@ filters.define('remove_spaces', (str) => str.replace(/ /g, '_'));
|
|
6624
6624
|
filters.define('add_spaces', (str) => (str = str.replace(/[_\-]/g, ' ')));
|
6625
6625
|
filters.define('capitalise', (str) => (str = str.charAt(0).toUpperCase() + str.slice(1)));
|
6626
6626
|
filters.define('lowercase', (str) => (str = str.toLowerCase()));
|
6627
|
+
filters.define('tag_tidy', (str) => {
|
6628
|
+
const arr = str.split('>');
|
6629
|
+
return arr.map((s) => s.trim())[arr.length - 1];
|
6630
|
+
});
|
6627
6631
|
const Squirrel = squirrel;
|
6628
6632
|
|
6629
6633
|
var createDeferredPromise = function () {
|
@@ -8045,30 +8049,28 @@ class AlgoliaResults {
|
|
8045
8049
|
this.nanoTplUpdated.emit(this.el);
|
8046
8050
|
}
|
8047
8051
|
connectedCallback() {
|
8048
|
-
|
8049
|
-
|
8050
|
-
|
8051
|
-
|
8052
|
-
|
8053
|
-
|
8054
|
-
|
8055
|
-
|
8056
|
-
|
8057
|
-
|
8058
|
-
|
8059
|
-
|
8060
|
-
|
8061
|
-
|
8062
|
-
|
8063
|
-
|
8064
|
-
|
8065
|
-
|
8066
|
-
|
8067
|
-
|
8068
|
-
|
8069
|
-
|
8070
|
-
}
|
8071
|
-
});
|
8052
|
+
this.startTplSlot = this.el.querySelector('[slot="start-template"]');
|
8053
|
+
this.startOutputSlot = this.el.querySelector('[slot="start-output"]');
|
8054
|
+
if (this.startTplSlot) {
|
8055
|
+
this.startTpl = this.startTplSlot.innerHTML;
|
8056
|
+
this.startTpl = this.startTpl.replace(/=>/gm, '=>');
|
8057
|
+
}
|
8058
|
+
this.resultTplSlot = this.el.querySelector('[slot="result-template"]');
|
8059
|
+
this.outputSlot = this.el.querySelector('[slot="result-output"]');
|
8060
|
+
if (this.resultTplSlot) {
|
8061
|
+
this.resultTpl = this.resultTplSlot.innerHTML;
|
8062
|
+
this.resultTpl = this.resultTpl.replace(/=>/gm, '=>');
|
8063
|
+
}
|
8064
|
+
this.endTplSlot = this.el.querySelector('[slot="end-template"]');
|
8065
|
+
this.endOutputSlot = this.el.querySelector('[slot="end-output"]');
|
8066
|
+
if (this.endTplSlot) {
|
8067
|
+
this.endTpl = this.endTplSlot.innerHTML;
|
8068
|
+
this.endTpl = this.endTpl.replace(/=>/gm, '=>');
|
8069
|
+
}
|
8070
|
+
if (this.indexResults) {
|
8071
|
+
this.addContentIndex();
|
8072
|
+
this.updateResultContent();
|
8073
|
+
}
|
8072
8074
|
}
|
8073
8075
|
componentDidLoad() {
|
8074
8076
|
this.updateStartEndContent();
|
@@ -8080,10 +8082,10 @@ class AlgoliaResults {
|
|
8080
8082
|
}
|
8081
8083
|
}
|
8082
8084
|
render() {
|
8083
|
-
return (h(Host, { key: '
|
8085
|
+
return (h(Host, { key: '857784ead2b9536559ef2220bff26d508061781c', class: {
|
8084
8086
|
'show-results': this.showResults,
|
8085
8087
|
'nano-results': true,
|
8086
|
-
} }, h("div", { key: '
|
8088
|
+
} }, h("div", { key: 'be165b02c4ec5d2358e15dadfd4695fd5901f0b0', class: "default" }, h("slot", { key: '1ab64bb71c75531e8f6b0c65833de7d2dc1ee0ca' })), h("div", { key: 'cee981cead8b921e29fd4223e4985c3615e0e063', ref: (div) => (this.outputEle = div) }, h("slot", { key: 'cff96070ca2acf18f7b8165444b28f433ca3601d', name: "start-output" }), h("slot", { key: '76833dd55d415baf083527ed5580049f90c36b40', name: "result-output" }), h("div", { key: 'dac7a9081d1a65b4e17dec60044467e17575568e', ref: (div) => (this.infiniteScrollBar = div) }), h("slot", { key: '07c82d60a58c11bcc50807ab95d63cf3fd59d768', name: "end-output" }))));
|
8087
8089
|
}
|
8088
8090
|
static get watchers() { return {
|
8089
8091
|
"results": ["addContentIndex", "resultsChange"],
|
@@ -12817,7 +12819,7 @@ class Popover {
|
|
12817
12819
|
// this.isVisible = false;
|
12818
12820
|
this.popover.hidden = true;
|
12819
12821
|
this.popover.classList.remove(this.options.visibleClass);
|
12820
|
-
this.popover.addEventListener('transitionend', this.handleTransitionEnd
|
12822
|
+
this.popover.addEventListener('transitionend', this.handleTransitionEnd);
|
12821
12823
|
}
|
12822
12824
|
handleTransitionEnd(event) {
|
12823
12825
|
const target = event.target;
|
@@ -12832,10 +12834,13 @@ class Popover {
|
|
12832
12834
|
this.popover.classList.remove(this.options.visibleClass);
|
12833
12835
|
this.options.onAfterHide.call(this);
|
12834
12836
|
}
|
12837
|
+
else {
|
12838
|
+
this.options.onAfterShow.call(this);
|
12839
|
+
}
|
12835
12840
|
}
|
12836
12841
|
}
|
12837
12842
|
destroy() {
|
12838
|
-
this.popover.removeEventListener('transitionend', this.handleTransitionEnd
|
12843
|
+
this.popover.removeEventListener('transitionend', this.handleTransitionEnd);
|
12839
12844
|
if (this.popper) {
|
12840
12845
|
this.popper.destroy();
|
12841
12846
|
this.popper = null;
|
@@ -12887,7 +12892,6 @@ class Popover {
|
|
12887
12892
|
},
|
12888
12893
|
],
|
12889
12894
|
});
|
12890
|
-
this.popover.addEventListener('transitionend', () => this.options.onAfterShow.call(this), { once: true });
|
12891
12895
|
// Reposition the menu after it appears in case a modifier kicked in
|
12892
12896
|
requestAnimationFrame(() => {
|
12893
12897
|
this.popper?.update().catch((e) => {
|
@@ -13249,8 +13253,12 @@ class Dropdown {
|
|
13249
13253
|
distance: this.distance,
|
13250
13254
|
skidding: this.skidding,
|
13251
13255
|
transitionElement: this.panel,
|
13252
|
-
onAfterHide: () =>
|
13253
|
-
|
13256
|
+
onAfterHide: () => {
|
13257
|
+
this.nanoAfterHide.emit();
|
13258
|
+
},
|
13259
|
+
onAfterShow: () => {
|
13260
|
+
this.nanoAfterShow.emit();
|
13261
|
+
},
|
13254
13262
|
onTransitionEnd: () => {
|
13255
13263
|
if (!this.open) {
|
13256
13264
|
this.afterHide();
|
@@ -13291,12 +13299,12 @@ class Dropdown {
|
|
13291
13299
|
this.popover.destroy();
|
13292
13300
|
}
|
13293
13301
|
render() {
|
13294
|
-
return (h(Host, { key: '
|
13302
|
+
return (h(Host, { key: 'c0ed4b8b03d27f7437c148c8df305886c6cf29d9', class: "nano-dropdown" }, h("div", { key: '27165586e2caa99ba746e7db3aa1574f0e9d1576', part: "base", id: this.dropdownId, class: {
|
13295
13303
|
dropdown: true,
|
13296
13304
|
'dropdown--open': this.open,
|
13297
|
-
} }, h("span", { key: '
|
13305
|
+
} }, h("span", { key: 'b401a4d341e786ae4fe8c54adf06f8da1be4f531', part: "trigger", class: "dropdown__trigger", ref: (el) => (this.trigger = el), onKeyDown: this.handleTriggerKeyDown, onClick: this.togglePanel }, h("slot", { key: 'bd61e0f2d5e164b21d3ecba81c63ec72b0b7cc6f', name: "trigger", onSlotchange: this.handleTriggerSlotChange })), h("div", { key: 'e0cb2a8823490b70f6aa01073d3873fa785fd763', ref: (el) => (this.positioner = el), class: "dropdown__positioner", popover: "manual", id: this.dropdownId + '-positioner' }, h("div", { key: '3f1b7e3911cd7616ff85d042fc0d1e3e358f36c2', ref: (el) => (this.panel = el), part: "panel", class: `dropdown__panel ${this.placement.split('-').join(' ')}`, "aria-hidden": !this.open, role: this.host.getAttribute('role') === 'group' ? 'group' : 'dialog', "aria-modal": this.host.getAttribute('role') === 'group' ? undefined : 'true', "aria-labelledby": this.dialogTitle ? this.labelId : undefined, tabIndex: this.isOverflowing() ? 0 : undefined }, this.dialogTitle && (h("span", { key: '19cc4dd331a4c2cbdc73a05687681cb2830fff0c', id: this.labelId, class: "dropdown__accessible-title", "aria-live": this.host.getAttribute('role') === 'group'
|
13298
13306
|
? undefined
|
13299
|
-
: 'polite' }, this.dialogTitle)), h("slot", { key: '
|
13307
|
+
: 'polite' }, this.dialogTitle)), h("slot", { key: '5da1881086c31481463b3b7244552e17ee66d997' }))))));
|
13300
13308
|
}
|
13301
13309
|
static get watchers() { return {
|
13302
13310
|
"open": ["handleOpenChange"],
|
@@ -15259,7 +15267,7 @@ class GlobalNav {
|
|
15259
15267
|
}; }
|
15260
15268
|
}
|
15261
15269
|
|
15262
|
-
const globalSearchResultsCss = ":host,*,*::before,*::after{box-sizing:border-box}[hidden]{display:none !important}@media (prefers-reduced-motion: reduce){:host,*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}:host,*,*::before,*::after{box-sizing:border-box}[hidden]{display:none !important}@media (prefers-reduced-motion: reduce){:host,*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}:host{display:block;flex:1 1 100%}.main-search{display:flex;background:white;font-size:14px;min-block-size:calc(100vh - 63px);justify-content:space-between}.main-search__wrap{display:contents;block-size:100%}.main-search ul{margin:0;padding:0;list-style:none}.main-search li{margin:0;padding:0}.main-search button:not(.result__tags-tag){appearance:none;border:none;background:none;position:relative;inset-block-start:-2px}.main-search .icon-button{color:inherit;align-self:normal;padding:9px 7px;cursor:pointer;display:flex;align-items:center}.main-search__topbar{display:flex;align-items:center;flex-wrap:wrap;margin-block-end:1em}.main-search__topbar::after{content:\"\";inline-size:calc(100% - 30px);inset-inline-start:30px;position:relative;border-block-end:1px solid #e5eef1;padding-block-start:0.9em}.main-search__applied-filters{border:solid 1px #e4e6e8;text-transform:uppercase;border-radius:3px;font-weight:bold;display:flex;align-items:center;line-height:0.9;padding:5px 5px 0;letter-spacing:2px;flex-wrap:wrap;margin-block-end:0.5rem}.main-search__applied-filters span{display:flex;align-items:center}:host(.small) .main-search__applied-filters{display:none}.main-search__applied-nofilter{margin-inline:0 5px;margin-block:0 3px;padding-inline:7px;padding-block:10px;font-size:12px;color:rgba(69, 85, 86, 0.85)}.main-search__applied-filter{padding-inline:8px 2px;padding-block:5px 3px;margin-inline:0 5px;margin-block:0 5px;color:#455556;font-size:11px;border-radius:2px;border:solid 1px rgba(0, 132, 169, 0.5);background-color:rgba(0, 132, 169, 0.2);line-height:1}.main-search__applied-filter .icon-button{padding-inline:10px 4px;padding-block:2px 1px}.main-search__applied-filter .icon-button .nano-icon{pointer-events:none}.main-search .topbar__bkbtn{position:relative;inset-inline-start:-7px}:host(.small) .main-search .topbar__query{display:none}.main-search .topbar__filtering{display:flex;align-items:center;margin-block:0;margin-inline:1em 0;flex:1}.main-search .topbar__order{min-inline-size:175px;max-inline-size:200px;margin-inline-start:auto}:host(.small) .main-search .topbar__order{max-inline-size:300px}.main-search .topbar .nano-select{opacity:1;transition:0.1s ease opacity}.main-search .topbar .nano-select:not(.hydrated){opacity:0}.main-search .topbar__show-filters{margin-inline-start:0.5em;text-transform:uppercase;display:none;flex-direction:column;align-items:center}.main-search .topbar__show-filters .nano-icon{font-size:20px}:host(.small) .main-search .topbar__show-filters{display:flex}.main-search .topbar__filter-count{inline-size:12px;block-size:12px;box-shadow:inset 0 3px 4px 0 rgba(0, 0, 0, 0.2);border:solid 1px #005c76;background-color:#005c76;color:white;font-size:7px;border-radius:50%;display:flex;align-items:center;justify-content:center;line-height:1;margin-block-end:3px}.main-search__results{font-size:14px;padding:1em 40px;color:rgba(69, 85, 86, 0.85);inline-size:70%;block-size:100%}@media (max-width: 576px){.main-search__results{padding:1em 20px}}:host(.small) .main-search__results{inline-size:100%}.main-search__filters{outline:none;padding-inline:0 40px;padding-block:1.8em 1em;flex:1 1 30%;box-sizing:border-box}@media (max-width: 576px){.main-search__filters{padding-inline-end:20px}}:host(:not(.small)) .main-search__filters{max-inline-size:350px;min-inline-size:220px}.filters{color:#455556;background:white;font-size:14px}:host(.small) .filters{position:fixed;inline-size:0;block-size:0;z-index:10;inset-block-start:0;inset-inline-end:0;transition:all 0s ease 0.5s;background:none}:host(.small) .filters.show{block-size:100vh;inline-size:100vw;transition:all 0s ease 0s}:host(.small) .filters.show::after{opacity:1}:host(.small) .filters::after{content:\"\";background:rgba(0, 0, 0, 0.5);position:absolute;inset:0;z-index:-1;opacity:0;transition:0.1s ease opacity}.filters__close-filters{display:none !important;font-size:1.4em}:host(.small) .filters__close-filters{display:inline-block !important;margin-inline:auto 0;margin-block:0}.filters__old-posts{margin-inline-start:1rem}:host(.small) .filters-wrap{position:absolute;inset-block-start:0;inset-inline-end:0;background:rgb(247, 246, 246);transform:translateX(100%);inline-size:300px;min-inline-size:200px;max-inline-size:80vw;transition:transform 0.3s ease;padding:1em;color:black;overflow:auto;block-size:100vh}:host(.small) .filters.show .filters-wrap{transform:translateX(0%);box-shadow:-3px -3px 7px rgba(0, 0, 0, 0.1)}.filters ul{margin:0;padding:0;list-style:none}.filters li{margin:0;padding:0}.filters .nano-details{--padding:0.8em;margin:0.8em 0}.filters .nano-details strong[slot]{display:block;padding-inline-start:calc(20px - 0.8em)}.filters .nano-details .nano-icon[slot=icon-end]{padding-inline:calc(20px - 0.8em)}.filters li:last-child .filter-label{margin-block-end:0}.filters .filter-label{display:flex;align-items:center;position:relative;margin:0.5em 0;line-height:1.4;z-index:0}.filters .filter-label::before{margin-inline:0 1em;margin-block:0;content:\"\";border:1px solid #007495;background:#fff;border-radius:3px;block-size:1em;inline-size:1em;min-inline-size:1em;min-block-size:1em;display:inline-block}.filters .filter-label::after{background-image:url(\"data:image/svg+xml;charset=utf-8,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'><path%20fill='%23ffffff'%20d='M173.898%20439.404l-166.4-166.4c-9.997-9.997-9.997-26.206%200-36.204l36.203-36.204c9.997-9.998%2026.207-9.998%2036.204%200L192%20312.69%20432.095%2072.596c9.997-9.997%2026.207-9.997%2036.204%200l36.203%2036.204c9.997%209.997%209.997%2026.206%200%2036.204l-294.4%20294.401c-9.998%209.997-26.207%209.997-36.204-.001z'/></svg>\");content:\"\";block-size:0.7em;inline-size:0.7em;position:absolute;inset-inline-start:2px;inset-block-start:50%;transform:translateY(-50%);z-index:1;display:block;background-size:100%;background-position:center center;background-repeat:no-repeat}.filters .filter-cb{clip-path:inset(50%);block-size:1px;overflow:hidden;position:absolute;white-space:nowrap;inline-size:1px}.filters .filter-cb:checked+.filter-label::before{background:#245a6f}.filters .filter-cb:focus+.filter-label::before{box-shadow:0 0 0 1px rgba(0, 0, 0, 0.7)}.filters-header{display:flex;align-items:center;border-block-end:1px solid #90c6e7;padding-block-end:0.5rem;margin-block-end:0.5rem}.filters-reset{color:#007495;font-size:12px;text-decoration:underline;margin-inline:auto 0;margin-block:0}:host(.small) .filters-reset{margin:0}.filters-title{margin:0;text-transform:uppercase;color:rgba(69, 85, 86, 0.85);font-weight:bold;font-size:14px}:host(.small) .filters-title{display:none}.result{text-decoration:none;display:flex;flex-flow:row wrap;padding-block-end:14px;border-block-end:1px solid #90c6e7}.result *{word-wrap:break-word;overflow-wrap:break-word}.result__title{margin:1em 0 0.5em;inline-size:70%;display:flex}.result__title a{color:#0084a9;font-size:14px;line-height:1.43;text-decoration:none;font-weight:600}.result__title .nano-icon{margin-inline:0 0.5em;margin-block:0;min-inline-size:20px;min-block-size:20px;opacity:0.8}@media (max-width: 992px){.result__title{inline-size:100%}}.result__body{color:#455556;font-size:13px;inline-size:70%;text-decoration:none}@media (max-width: 992px){.result__body{inline-size:100%}}.result__pdf{display:inline-block;margin-inline-start:0.5rem;color:#b5aea7}.result__meta{display:flex;flex-flow:row wrap;color:#455556;font-size:11px;line-height:13px;inline-size:100%;align-items:center}.result__meta>*{margin-block-start:0.5rem}.result__meta>*:not(:last-child){padding-inline-end:0}.result__meta>*:not(:last-child)::after{content:\"\";block-size:1rem;inline-size:1px;background:#90c6e7;display:inline-block;margin-inline:0.7rem}@media (max-width: 576px){.result__meta>*:not(:last-child)::after{display:none}}@media (max-width: 576px){.result__meta{flex-flow:column;align-items:flex-start}}.result__tags{display:flex;flex-flow:row wrap}@media (max-width: 576px){.result__tags{padding-inline-start:0}}.result__tags-tag{color:#455556;display:inline-block;font-size:0.4375rem;letter-spacing:1.4px;background:#fff;border-radius:2px;text-transform:uppercase;padding:0 4px 1px 5px;font-weight:600;margin:3px 0.25rem 0.25rem 0;border:1px solid #b5aea7;white-space:nowrap;line-height:13px}.result__type{font-weight:600;text-transform:capitalize;white-space:nowrap;display:flex;align-items:center}.result__date{display:flex;align-items:center;color:#455556}.result__source{color:#455556;padding-inline-end:0.75rem}.result__authors{font-size:12px;color:#455556;margin-block-end:0.25rem;text-decoration:none;inline-size:70%}.result__buttons{inline-size:70%;margin-block-end:0.5rem}.result__buttons-button{background-color:#007495;color:#fff;padding:5px 8px 1px;border-radius:4px;display:inline-block;font-size:11px;text-decoration:none;border:none}.result__promo{inline-size:70%;margin-block-end:0.5rem;text-decoration:none;color:#455556}.result__promo-box{inline-size:300px;background-color:#e3eef1;padding:12px 12px 8px 4px;display:flex;flex-flow:row nowrap;margin-block-start:1rem}.result__promo-bigdate{flex:0 1 60px;text-align:center;font-weight:600;color:#007495;text-transform:uppercase;line-height:1;letter-spacing:1.5px}@media (max-width: 992px){.result__promo-bigdate{inline-size:100%}}.result__promo-bigdate span{color:#455556;display:block}.result__promo-bigdate~div{padding-inline-start:1rem;border-inline-start:1px solid #c5dbe1}.result__promo-date{font-size:12px}.result__promo-venue{font-size:12px}.result__promo .nano-icon{color:#007495;position:relative;inset-block-start:1px;padding-inline-end:2px}.result__image{display:block;background-size:cover;background-repeat:no-repeat;background-position:center;border-radius:4px;position:relative;inline-size:100%;block-size:150px;margin-block-end:0.5rem}@media (min-width: 576px){.result__image{inline-size:142px;block-size:80px}}.result__image .nano-icon{position:absolute;inset-block-start:calc(50% - 0.75rem);inset-inline-start:calc(50% - 0.75rem);font-size:1.5rem;color:#0084a9;--primary-color:#fff;--secondary-color:#0084a9;--primary-opacity:1}@media (max-width: 576px){.result__image .nano-icon{font-size:3rem;inset-block-start:calc(50% - 1.5rem);inset-inline-start:calc(50% - 1.5rem)}}.result__video-body{inline-size:70%;text-decoration:none;display:flex;flex-flow:row wrap}@media (max-width: 992px){.result__video-body{inline-size:100%}}@media (max-width: 576px){.result__video-body{flex-flow:column}}.result__video-body .result__body{padding-inline-start:1rem;display:flex;flex-direction:column;margin-block-end:0;flex:1}@media (max-width: 576px){.result__video-body .result__body{padding-inline-start:0}}.result__video-body .result__body p{display:inline;margin:0}.result__video-body .result__body u,.result__video-body .result__body li,.result__video-body .result__body a{text-decoration:none}.result__video-body .result__body .result__meta{margin-block-start:0.5rem}.result__video-body .result__body .result__description{flex:1 0 auto}.search-empty{padding:3rem 0;text-align:center;border-block-start:1px solid #e5eef1}.search-empty h2{color:#455556;font-size:1.125rem;margin-block-end:0.5rem}.search-empty-icon{font-size:7rem;--icon-color:#e4e6e8;margin-block-end:2rem}.search__highlight{background:#fbffbf;font-style:normal}";
|
15270
|
+
const globalSearchResultsCss = ":host,*,*::before,*::after{box-sizing:border-box}[hidden]{display:none !important}@media (prefers-reduced-motion: reduce){:host,*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}:host,*,*::before,*::after{box-sizing:border-box}[hidden]{display:none !important}@media (prefers-reduced-motion: reduce){:host,*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}:host{display:block;flex:1 1 100%}.main-search{display:flex;background:white;font-size:14px;min-block-size:calc(100vh - 63px);justify-content:space-between;max-inline-size:1266px;margin:auto}.main-search__wrap{display:contents;block-size:100%}.main-search ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:var(--nano-spacing-xl)}.main-search li{margin:0;padding:0}.main-search button:not(.result__tags-tag){appearance:none;border:none;background:none;position:relative;cursor:pointer}.main-search button:not(.result__tags-tag):focus-visible{outline:var(--nano-focus-ring);outline-offset:var(--nano-focus-ring-offset)}.main-search a:focus-visible{outline:var(--nano-focus-ring);outline-offset:var(--nano-focus-ring-offset)}.main-search .icon-button{color:inherit;align-self:normal;padding:9px 7px;cursor:pointer;display:flex;align-items:center}.main-search div[slot=start-output]{border-block-end:1px solid var(--nano-color-neutral-300);margin-block-end:var(--nano-spacing-md)}.main-search__topbar{display:flex;align-items:center;flex-wrap:wrap;margin-block-end:1em}.main-search__applied-filters{display:flex;flex-wrap:wrap;gap:var(--nano-spacing-sm);margin-block-end:var(--nano-spacing-md)}.main-search .topbar__bkbtn{position:relative;inset-inline-start:-7px}:host(.small) .main-search .topbar__query{display:none}.main-search .topbar__filtering{display:flex;align-items:center;margin-block:0;margin-inline:1em 0;flex:1}.main-search .topbar__order{min-inline-size:175px;max-inline-size:200px;margin-inline-start:auto}:host(.small) .main-search .topbar__order{max-inline-size:300px}.main-search .topbar .nano-select{opacity:1;transition:0.1s ease opacity}.main-search .topbar .nano-select:not(.hydrated){opacity:0}.main-search .topbar__show-filters{margin-inline-start:0.5em;text-transform:uppercase;display:none;flex-direction:column;align-items:center}.main-search .topbar__show-filters .nano-icon{font-size:20px}:host(.small) .main-search .topbar__show-filters{display:flex}.main-search .topbar__filter-count{inline-size:12px;block-size:12px;box-shadow:inset 0 3px 4px 0 rgba(0, 0, 0, 0.2);border:solid 1px #005c76;background-color:#005c76;color:white;font-size:7px;border-radius:50%;display:flex;align-items:center;justify-content:center;line-height:1;margin-block-end:3px}.main-search__results{font-size:14px;padding:var(--nano-spacing-md) var(--nano-spacing-l1-default);color:var(--nano-color-neutral-1400);inline-size:70%;block-size:100%}:host(.small) .main-search__results{inline-size:100%}.main-search__filters{outline:none;padding-inline:0 var(--nano-spacing-l1-default);padding-block:var(--nano-spacing-l) var(--nano-spacing-md);flex:1 1 30%;box-sizing:border-box}:host(:not(.small)) .main-search__filters{max-inline-size:350px;min-inline-size:220px}.filters{color:var(--nano-color-neutral-1400);font-size:var(--nano-font-size-xs)}:host(.small) .filters{position:fixed;inline-size:0;block-size:0;z-index:10;inset-block-start:0;inset-inline-end:0;transition:all 0s ease 0.5s;background:none}:host(.small) .filters.show{block-size:100vh;inline-size:100vw;transition:all 0s ease 0s}:host(.small) .filters.show::after{opacity:1}:host(.small) .filters::after{content:\"\";background:rgba(0, 0, 0, 0.5);position:absolute;inset:0;z-index:-1;opacity:0;transition:0.1s ease opacity}.filters__close-filters{display:none !important;font-size:1.4em}:host(.small) .filters__close-filters{display:inline-block !important;margin-inline:auto 0;margin-block:0}.filters__old-posts{margin-inline-start:1rem}:host(.small) .filters-wrap{position:absolute;inset-block-start:0;inset-inline-end:0;transform:translateX(120%);inline-size:300px;min-inline-size:200px;max-inline-size:80vw;transition:transform 0.3s ease;padding:var(--nano-spacing-md);overflow:auto;block-size:100vh;background-color:var(--nano-color-surface-200);box-shadow:var(--nano-shadow-l2)}:host(.small) .filters.show .filters-wrap{transform:translateX(0%);box-shadow:-3px -3px 7px rgba(0, 0, 0, 0.1)}.filters ul{margin:0;padding:0;list-style:none;gap:var(--nano-spacing-sm);display:flex;flex-direction:column}.filters li{margin:0;padding:0}.filters li:last-child .filter-label{margin-block-end:0}.filters .filter-label{display:grid;place-items:center center;grid-template-columns:1.125em 1fr;gap:var(--nano-spacing-sm);cursor:pointer}.filters .filter-label>*{justify-self:start;font-size:var(--nano-font-size-2xs)}.filters .filter-label::before{content:\"\";grid-column:1;grid-row:1;border-radius:1px;block-size:1.125em;inline-size:1.125em;border:1px solid var(--nano-color-primary-1000);font-size:1rem}.filters .filter-label::after{content:\"\";grid-column:1;grid-row:1;border:solid var(--nano-color-basic-white);border-width:0 0.125em 0.125em 0;opacity:1;transition:scale var(--nano-transition-x-fast) ease-out;transform-origin:center;rotate:45deg;scale:0;inline-size:0.325em;block-size:0.5625em;margin-block-start:-0.1875em;font-size:1rem}.filters .filter-cb{clip-path:inset(50%);block-size:1px;overflow:hidden;position:absolute;white-space:nowrap;inline-size:1px}.filters .filter-cb:checked~.filter-label::before{background-color:var(--nano-color-primary-1000)}.filters .filter-cb:checked~.filter-label::after{scale:1}.filters .filter-cb:focus-visible:focus~.filter-label::before{outline:var(--nano-focus-ring);outline-offset:1px}.filters-header{display:flex;align-items:center;border-block-end:1px solid var(--nano-color-neutral-300);padding-block-end:var(--nano-spacing-md);margin-block-end:var(--nano-spacing-md)}.filters-reset{color:var(--nano-color-primary-1000);font-size:var(--nano-font-size-xs);text-decoration:underline;margin-inline:auto 0;margin-block:0;appearance:none;background:none;border:none}:host(.small) .filters-reset{margin:0}.filters-title{margin:0;text-transform:uppercase;color:rgba(69, 85, 86, 0.85);font-weight:bold;font-size:var(--nano-font-size-xs)}:host(.small) .filters-title{display:none}.filters-list{display:flex;flex-direction:column;gap:var(--nano-spacing-md)}.result{text-decoration:none;display:flex;flex-flow:row wrap;gap:var(--nano-spacing-sm);color:var(--nano-color-neutral-1400)}.result *{word-wrap:break-word;overflow-wrap:break-word}.result__title{inline-size:70%;display:flex}.result__title a{font-size:var(--nano-font-size-sm);line-height:var(--nano-line-height-normal);font-weight:var(--nano-font-weight-bold);text-decoration:none;color:var(--nano-color-neutral-1400)}.result__title .nano-icon{margin-inline:0 0.5em;margin-block:0;min-inline-size:20px;min-block-size:20px;opacity:0.8}@media (max-width: 992px){.result__title{inline-size:100%}}.result__body{font-size:var(--nano-font-size-xs);inline-size:70%;text-decoration:none;color:var(--nano-color-neutral-1400)}@media (max-width: 992px){.result__body{inline-size:100%}}.result__pdf{display:inline-block;margin-inline-start:0.5rem;color:var(--nano-color-neutral-300)}.result__meta{display:flex;flex-flow:row wrap;font-size:var(--nano-font-size-2xs);line-height:13px;inline-size:100%;align-items:center}.result__meta>*:not(:last-child){padding-inline-end:0}.result__meta>*:not(:last-child)::after{content:\"\";block-size:1rem;inline-size:1px;background:var(--nano-color-neutral-300);display:inline-block;margin-inline:0.7rem}@media (max-width: 576px){.result__meta>*:not(:last-child)::after{display:none}}@media (max-width: 576px){.result__meta{flex-flow:column;align-items:flex-start}}.result__tags{display:flex;flex-flow:row wrap;gap:var(--nano-spacing-sm)}@media (max-width: 576px){.result__tags{padding-inline-start:0}}.result__type{text-transform:capitalize;white-space:nowrap;display:flex;align-items:center}.result__date{display:flex;align-items:center}.result__source{padding-inline-end:0.75rem}.result__authors{font-size:var(--nano-font-size-2xs);margin-block-end:var(--nano-spacing-xs);text-decoration:none;inline-size:70%;color:var(--nano-color-neutral-1400)}.result__buttons{inline-size:70%;margin-block-end:0.5rem}.result__promo{inline-size:70%;margin-block-end:0.5rem;text-decoration:none;color:var(--nano-color-neutral-1400)}.result__promo-box{inline-size:300px;background-color:#e3eef1;padding:12px 12px 8px 4px;display:flex;flex-flow:row nowrap;margin-block-start:1rem}.result__promo-bigdate{flex:0 1 60px;text-align:center;font-weight:600;color:var(--nano-color-primary-1000);text-transform:uppercase;line-height:1;letter-spacing:1.5px}@media (max-width: 992px){.result__promo-bigdate{inline-size:100%}}.result__promo-bigdate span{color:var(--nano-color-neutral-1400);display:block}.result__promo-bigdate~div{padding-inline-start:1rem;border-inline-start:1px solid var(--nano-color-neutral-300)}.result__promo-date{font-size:var(--nano-font-size-2xs)}.result__promo-venue{font-size:var(--nano-font-size-2xs)}.result__promo .nano-icon{color:var(--nano-color-primary-1000);position:relative;inset-block-start:1px;padding-inline-end:2px}.result__image{display:block;background-size:cover;background-repeat:no-repeat;background-position:center;border-radius:4px;position:relative;inline-size:100%;block-size:150px;margin-block-end:var(--nano-spacing-xs)}@media (min-width: 576px){.result__image{inline-size:142px;block-size:80px}}.result__image .nano-icon{position:absolute;inset-block-start:calc(50% - 0.75rem);inset-inline-start:calc(50% - 0.75rem);font-size:var(--nano-pictogram-size-small);color:var(--nano-color-primary-1000);--primary-color:var(--nano-color-base-0);--secondary-color:var(--nano-color-primary-1000);--primary-opacity:1}@media (max-width: 576px){.result__image .nano-icon{font-size:3rem;inset-block-start:calc(50% - 1.5rem);inset-inline-start:calc(50% - 1.5rem)}}.result__video-body{inline-size:70%;text-decoration:none;display:flex;flex-flow:row wrap}@media (max-width: 992px){.result__video-body{inline-size:100%}}@media (max-width: 576px){.result__video-body{flex-flow:column}}.result__video-body .result__body{padding-inline-start:var(--nano-spacing-md);display:flex;flex-direction:column;margin-block-end:0;flex:1}@media (max-width: 576px){.result__video-body .result__body{padding-inline-start:0}}.result__video-body .result__body p{display:inline;margin:0}.result__video-body .result__body u,.result__video-body .result__body li,.result__video-body .result__body a{text-decoration:none}.result__video-body .result__body .result__meta{margin-block-start:0.5rem}.result__video-body .result__body .result__description{flex:1 0 auto}.search-empty{padding:var(--nano-spacing-xl) 0;text-align:center;border-block-start:1px solid var(--nano-color-neutral-300)}.search-empty h2{font-weight:var(--nano-font-weight-normal);font-size:var(--nano-font-size-xl);line-height:var(--nano-line-height-denser);text-wrap:balance}.search-empty-icon{font-size:7rem;--icon-color:#e4e6e8;margin-block-end:2rem}.search__highlight{background:var(--nano-color-highlight);font-style:normal}";
|
15263
15271
|
|
15264
15272
|
const filterOldPosts = 'created > ' + Math.floor((Date.now() - 63115200000) / 1000);
|
15265
15273
|
let searchResultIds = 0;
|
@@ -15329,6 +15337,9 @@ class GlobalSearchResults {
|
|
15329
15337
|
};
|
15330
15338
|
this.algoliaEle.query = meta.query;
|
15331
15339
|
};
|
15340
|
+
handleNanoFilterChanged() {
|
15341
|
+
this.el.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
15342
|
+
}
|
15332
15343
|
handleReorder(e) {
|
15333
15344
|
if (e
|
15334
15345
|
.composedPath()
|
@@ -15366,7 +15377,7 @@ class GlobalSearchResults {
|
|
15366
15377
|
this.filtersDiv = this.algoliaEle.querySelector('#main-search-filters');
|
15367
15378
|
const oldResults = this.algoliaEle.querySelector('.old-posts');
|
15368
15379
|
if (oldResults) {
|
15369
|
-
oldResults.addEventListener('
|
15380
|
+
oldResults.addEventListener('nanoChange', (e) => {
|
15370
15381
|
this.toggleOldResults(e.target.checked);
|
15371
15382
|
});
|
15372
15383
|
}
|
@@ -15383,8 +15394,8 @@ class GlobalSearchResults {
|
|
15383
15394
|
this.algoliaResultsEle.addEventListener('click', this.resultClick);
|
15384
15395
|
// wire up remove filter event listener
|
15385
15396
|
resultEle.querySelectorAll('.remove-filter').forEach((item) => {
|
15386
|
-
item.removeEventListener('
|
15387
|
-
item.addEventListener('
|
15397
|
+
item.removeEventListener('nanoClose', this.removeFilterClick);
|
15398
|
+
item.addEventListener('nanoClose', this.removeFilterClick);
|
15388
15399
|
});
|
15389
15400
|
// wire up the back button event listener
|
15390
15401
|
resultEle.querySelectorAll('.back-btn').forEach((item) => {
|
@@ -15428,7 +15439,8 @@ class GlobalSearchResults {
|
|
15428
15439
|
setTimeout(() => this.filtersDiv.focus(), 20);
|
15429
15440
|
};
|
15430
15441
|
removeFilterClick = (e) => {
|
15431
|
-
|
15442
|
+
const target = e.target.closest('[data-filter-val]');
|
15443
|
+
this.removeFilter(target?.dataset.filter, target?.dataset.filterVal);
|
15432
15444
|
};
|
15433
15445
|
tagClick = (e) => {
|
15434
15446
|
e.preventDefault();
|
@@ -15464,7 +15476,7 @@ class GlobalSearchResults {
|
|
15464
15476
|
this.filtersDiv.classList.remove('show');
|
15465
15477
|
this.filtersDiv.setAttribute('aria-expanded', 'false');
|
15466
15478
|
document.body.style.overflow = '';
|
15467
|
-
setTimeout(() => this.openFilterBtn
|
15479
|
+
setTimeout(() => this.openFilterBtn?.focus(), 20);
|
15468
15480
|
}
|
15469
15481
|
toggleOldResults(show) {
|
15470
15482
|
if (show)
|
@@ -15472,6 +15484,8 @@ class GlobalSearchResults {
|
|
15472
15484
|
else
|
15473
15485
|
this.algoliaEle.filters = [...this.algoliaEle.filters, filterOldPosts];
|
15474
15486
|
}
|
15487
|
+
componentWillLoad() {
|
15488
|
+
}
|
15475
15489
|
connectedCallback() {
|
15476
15490
|
const globalNavTag = transformTag('nano-global-nav');
|
15477
15491
|
this.globalNav = this.el.closest(globalNavTag);
|
@@ -15509,17 +15523,17 @@ class GlobalSearchResults {
|
|
15509
15523
|
this.ro.observe(this.el);
|
15510
15524
|
}
|
15511
15525
|
render() {
|
15512
|
-
return (h(Host, { key: '
|
15513
|
-
small: this.currentWidth <
|
15526
|
+
return (h(Host, { key: '6f4387b28776c047e2bea038b7de5ebc43c16a49', class: {
|
15527
|
+
small: this.currentWidth < 780,
|
15514
15528
|
'nano-global-search-results': true,
|
15515
|
-
}, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : undefined }, h("nano-algolia", { key: '
|
15529
|
+
}, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : undefined }, h("nano-algolia", { key: 'cf5fdf51f46cedf20c3242ddfd873903168bb04d', storeId: this.queryId, storeMethod: "url-hash-push", class: "main-search__wrap sc-nano-global-search-results", ref: (ele) => requestAnimationFrame(() => (this.algoliaEle = ele)), id: "main-search",
|
15530
|
+
// @ts-expect-error this bubbles from nano-algolia-filter
|
15531
|
+
onNanoFilterChanged: () => this.handleNanoFilterChanged() }, h("template", { key: '8abd5c449cb8f570ca9b3a8cdd9247e26dd4a116', slot: "template" },
|
15516
15532
|
/* html */ `<div class="main-search sc-nano-global-search-results">
|
15517
15533
|
<nano-algolia-results id="main-search-results" class="main-search__results sc-nano-global-search-results" infinite-scroll>
|
15518
15534
|
<script type="text/template" slot="start-template">
|
15519
15535
|
<div class="sc-nano-global-search-results main-search__topbar topbar">
|
15520
|
-
<button class="sc-nano-global-search-results topbar__bkbtn back-btn icon-button">
|
15521
|
-
<nano-icon class="sc-nano-global-search-results" name="light/chevron-left" size="small"></nano-icon>
|
15522
|
-
</button>
|
15536
|
+
<nano-icon-button icon-name="light/chevron-left" class="sc-nano-global-search-results topbar__bkbtn back-btn icon-button"></nano-icon-button>
|
15523
15537
|
<div>
|
15524
15538
|
<em class="sc-nano-global-search-results topbar__query">'{{ it.query }}' - </em> <strong>{{ it.totalHitsWithFilters }}</strong> Results
|
15525
15539
|
</div>
|
@@ -15551,16 +15565,15 @@ class GlobalSearchResults {
|
|
15551
15565
|
{{ @if (it.appliedFilters) }}
|
15552
15566
|
{{ @each(it.appliedFilters) => filterObj }}
|
15553
15567
|
{{ @each(filterObj.values) => filterVal }}
|
15554
|
-
<
|
15555
|
-
|
15556
|
-
|
15557
|
-
|
15558
|
-
|
15559
|
-
|
15568
|
+
<nano-tag
|
15569
|
+
closable
|
15570
|
+
size="large"
|
15571
|
+
data-filter-val="{{ filterVal }}"
|
15572
|
+
data-filter="{{ filterObj.name }}"
|
15573
|
+
class="remove-filter"
|
15574
|
+
>{{ filterVal | tag_tidy | public_name }}</nano-tag>
|
15560
15575
|
{{ /each }}
|
15561
15576
|
{{ /each }}
|
15562
|
-
{{ #else }}
|
15563
|
-
<span class="sc-nano-global-search-results main-search__applied-nofilter"> </span>
|
15564
15577
|
{{ /if }}
|
15565
15578
|
</div>
|
15566
15579
|
{{ /if }}
|
@@ -15582,7 +15595,7 @@ class GlobalSearchResults {
|
|
15582
15595
|
{{ contentType = result.content_type ? result.content_type : result.type }}
|
15583
15596
|
<li class="sc-nano-global-search-results">
|
15584
15597
|
<div class="sc-nano-global-search-results result" data-hit-id="{{ result.objectID }}" data-hit-count="{{ resultIndex }}">
|
15585
|
-
<
|
15598
|
+
<strong class="sc-nano-global-search-results result__title" data-icon-set="{{(iconSet = false)}}">
|
15586
15599
|
<a href="{{ result.url | abs_url(it, result) }}">
|
15587
15600
|
{{ @if (result._snippetResult) }}
|
15588
15601
|
{{ result._snippetResult.title.value | safe }}
|
@@ -15593,7 +15606,7 @@ class GlobalSearchResults {
|
|
15593
15606
|
<span class="sc-nano-global-search-results result__pdf">PDF</span>
|
15594
15607
|
{{ /if }}
|
15595
15608
|
</a>
|
15596
|
-
</
|
15609
|
+
</strong>
|
15597
15610
|
{{ @if (result.authors) }}
|
15598
15611
|
{{ @if (typeof result.authors === 'string') }}
|
15599
15612
|
<a class="sc-nano-global-search-results result__authors" href="{{ result.url | abs_url(it, result) }}">Authors: {{ result.authors | trim_to(50) }}</a>
|
@@ -15611,12 +15624,13 @@ class GlobalSearchResults {
|
|
15611
15624
|
{{ @if (result.name) }}
|
15612
15625
|
<a class="sc-nano-global-search-results result__authors" href="{{ result.url | abs_url(it, result) }}">Speaker: {{ result.name | trim_to(50) }}</a>
|
15613
15626
|
{{ /if }}
|
15627
|
+
|
15628
|
+
{{ @if (result.image) }}
|
15629
|
+
<div class="sc-nano-global-search-results result__image" style="background-image: url('{{ result.image | abs_url(it, result) }}')">
|
15630
|
+
<nano-icon class="sc-nano-global-search-results" name="duotone/play-circle"></nano-icon>
|
15631
|
+
</div>
|
15632
|
+
{{ /if }}
|
15614
15633
|
<a class="sc-nano-global-search-results result__video-body" href="{{ result.url | abs_url(it, result) }}">
|
15615
|
-
{{ @if (result.image) }}
|
15616
|
-
<div class="sc-nano-global-search-results result__image" style="background-image: url('{{ result.image | abs_url(it, result) }}')">
|
15617
|
-
<nano-icon class="sc-nano-global-search-results" name="duotone/play-circle"></nano-icon>
|
15618
|
-
</div>
|
15619
|
-
{{ /if }}
|
15620
15634
|
<div class="sc-nano-global-search-results result__body">
|
15621
15635
|
<div class="sc-nano-global-search-results result__description">
|
15622
15636
|
{{ @if (result.description) }}
|
@@ -15624,36 +15638,37 @@ class GlobalSearchResults {
|
|
15624
15638
|
{{ /if }}
|
15625
15639
|
</div>
|
15626
15640
|
</div>
|
15627
|
-
|
15628
|
-
|
15629
|
-
|
15630
|
-
|
15631
|
-
|
15632
|
-
|
15633
|
-
|
15634
|
-
{{
|
15635
|
-
</div>
|
15641
|
+
</a>
|
15642
|
+
<div class="sc-nano-global-search-results result__meta">
|
15643
|
+
{{ @if (result.type || result.content_type) }}
|
15644
|
+
<div class="sc-nano-global-search-results result__type">
|
15645
|
+
{{ @if (contentType === 'lc_lightning_talk') }}
|
15646
|
+
Presentation
|
15647
|
+
{{ #else }}
|
15648
|
+
{{ contentType }}
|
15636
15649
|
{{ /if }}
|
15637
|
-
|
15638
|
-
|
15639
|
-
|
15640
|
-
|
15641
|
-
|
15642
|
-
|
15643
|
-
|
15644
|
-
|
15645
|
-
|
15646
|
-
|
15647
|
-
|
15648
|
-
|
15650
|
+
</div>
|
15651
|
+
{{ /if }}
|
15652
|
+
|
15653
|
+
{{ @if (result.source) }}
|
15654
|
+
<div class="sc-nano-global-search-results result__source">Source: {{ result.source }}</div>
|
15655
|
+
{{ /if }}
|
15656
|
+
</div>
|
15657
|
+
{{ @if (result.tags) }}
|
15658
|
+
<div class="sc-nano-global-search-results result__tags">
|
15659
|
+
{{ @if (typeof result.tags === 'string') }}
|
15660
|
+
<nano-tag><button data-value="{{ result.tags | lowercase }}" class="sc-nano-global-search-results result__tags-tag">{{ result.tags }}</button></nano-tag>
|
15661
|
+
{{ #else }}
|
15662
|
+
{{ @each(result.tags) => tag, index }}
|
15663
|
+
{{ @if(index < 5)}}
|
15664
|
+
{{ @if (tag !== "No video" && tag !== "Resources" && tag !== "Video") }}
|
15665
|
+
<nano-tag><button data-value="{{ tag | lowercase }}" class="sc-nano-global-search-results result__tags-tag">{{ tag | tag_tidy }}</button></nano-tag>
|
15666
|
+
{{ /if }}
|
15649
15667
|
{{ /if }}
|
15650
|
-
|
15651
|
-
{{ /if }}
|
15652
|
-
{{ @if (result.source) }}
|
15653
|
-
<div class="sc-nano-global-search-results result__source">Source: {{ result.source }}</div>
|
15668
|
+
{{ /each }}
|
15654
15669
|
{{ /if }}
|
15655
15670
|
</div>
|
15656
|
-
|
15671
|
+
{{ /if }}
|
15657
15672
|
{{ /if }}
|
15658
15673
|
{{ @if (result.body) }}
|
15659
15674
|
<a class="sc-nano-global-search-results result__body" href="{{ result.url | abs_url(it, result) }}">
|
@@ -15663,8 +15678,8 @@ class GlobalSearchResults {
|
|
15663
15678
|
</a>
|
15664
15679
|
{{ /if }}
|
15665
15680
|
{{ @if (contentType === 'product' }}
|
15666
|
-
<
|
15667
|
-
<a
|
15681
|
+
<nano-cta size="small">
|
15682
|
+
<a href="{{ result.url | abs_url(it, result) }}">View product</a>
|
15668
15683
|
</div>
|
15669
15684
|
{{ /if }}
|
15670
15685
|
{{ @if (contentType === 'event') }}
|
@@ -15737,27 +15752,27 @@ class GlobalSearchResults {
|
|
15737
15752
|
{{ /if }}
|
15738
15753
|
{{ /if }}
|
15739
15754
|
{{ /if }}
|
15740
|
-
{{ @if (result.tags) }}
|
15741
|
-
<div class="sc-nano-global-search-results result__tags">
|
15742
|
-
{{ @if (typeof result.tags === 'string') }}
|
15743
|
-
{{ @if (result.tags !== "Resources" && result.tags !== "Tools" && result.tags !== "Publications" && result.tags !== "Case studies") }}
|
15744
|
-
<button data-value="{{ result.tags | lowercase }}" class="sc-nano-global-search-results result__tags-tag">{{ result.tags }}</button>
|
15745
|
-
{{ /if }}
|
15746
|
-
{{ #else }}
|
15747
|
-
{{ @each(result.tags) => tag, index }}
|
15748
|
-
{{ @if(index < 5)}}
|
15749
|
-
{{ @if (tag !== "Resources" && tag !== "Tools" && tag !== "Publications" && tag !== "Case studies") }}
|
15750
|
-
<button data-value="{{ tag | lowercase }}" class="sc-nano-global-search-results result__tags-tag">{{ tag }}</button>
|
15751
|
-
{{ /if }}
|
15752
|
-
{{ /if }}
|
15753
|
-
{{ /each }}
|
15754
|
-
{{ /if }}
|
15755
|
-
</div>
|
15756
|
-
{{ /if }}
|
15757
15755
|
{{ @if (result.source) }}
|
15758
15756
|
<div class="sc-nano-global-search-results result__source">Source: {{ result.source }}</div>
|
15759
15757
|
{{ /if }}
|
15760
15758
|
</div>
|
15759
|
+
{{ @if (result.tags) }}
|
15760
|
+
<div class="sc-nano-global-search-results result__tags">
|
15761
|
+
{{ @if (typeof result.tags === 'string') }}
|
15762
|
+
{{ @if (result.tags !== "Resources" && result.tags !== "Tools" && result.tags !== "Publications" && result.tags !== "Case studies") }}
|
15763
|
+
<nano-tag><button data-value="{{ result.tags | lowercase }}" class="result__tags-tag">{{ result.tags }}</button></nano-tag>
|
15764
|
+
{{ /if }}
|
15765
|
+
{{ #else }}
|
15766
|
+
{{ @each(result.tags) => tag, index }}
|
15767
|
+
{{ @if(index < 5)}}
|
15768
|
+
{{ @if (tag !== "Resources" && tag !== "Tools" && tag !== "Publications" && tag !== "Case studies") }}
|
15769
|
+
<nano-tag><button data-value="{{ tag | lowercase }}" class="result__tags-tag">{{ tag | tag_tidy }}</button></nano-tag>
|
15770
|
+
{{ /if }}
|
15771
|
+
{{ /if }}
|
15772
|
+
{{ /each }}
|
15773
|
+
{{ /if }}
|
15774
|
+
</div>
|
15775
|
+
{{ /if }}
|
15761
15776
|
{{ /if }}
|
15762
15777
|
</div>
|
15763
15778
|
</li>
|
@@ -15776,30 +15791,26 @@ class GlobalSearchResults {
|
|
15776
15791
|
<div class="sc-nano-global-search-results filters-header">
|
15777
15792
|
<strong class="sc-nano-global-search-results filters-title">Filters</strong>
|
15778
15793
|
<button class="sc-nano-global-search-results filters-reset">Reset</button>
|
15779
|
-
<button class="sc-nano-global-search-results filters__close-filters close-filters icon-button" aria-controls="main-search-filters">
|
15780
|
-
<nano-icon class="sc-nano-global-search-results" name="light/xmark"></nano-icon>
|
15781
|
-
</button>
|
15794
|
+
<nano-icon-button class="sc-nano-global-search-results filters__close-filters close-filters icon-button" icon-name="light/xmark" aria-controls="main-search-filters"></nano-icon-button>
|
15782
15795
|
</div>
|
15783
15796
|
{{ /if }}
|
15784
15797
|
|
15785
|
-
<div>
|
15786
|
-
<
|
15787
|
-
|
15788
|
-
|
15789
|
-
</label>
|
15798
|
+
<div class="sc-nano-global-search-results filters-list">
|
15799
|
+
<nano-checkbox value="old-posts" class="old-posts" name="old-posts" checked>
|
15800
|
+
<span>Include posts older than 2 years</strong>)</span>
|
15801
|
+
</nano-checkbox>
|
15790
15802
|
{{ @if(it.origFilters['type']) }}
|
15791
|
-
<nano-details class="sc-nano-global-search-results" open={true}
|
15792
|
-
<strong slot="label">Type</strong>
|
15793
|
-
<nano-icon slot="icon-end" name="light/chevron-down" size="small"></nano-icon>
|
15803
|
+
<nano-details class="sc-nano-global-search-results" open={true} label="Type" size="small">
|
15794
15804
|
<nano-algolia-filter store-id="searchf1" store-method="url-hash-push" filter-name="type">
|
15795
15805
|
<script type="text/template" slot="filter-template">
|
15796
15806
|
<ul class="sc-nano-global-search-results" data-num="{{(x = 0)}}">
|
15797
15807
|
{{ @foreach(it.dyn) => filter, filterVal }}
|
15798
15808
|
<li class="sc-nano-global-search-results" data-num="{{(x++)}}">
|
15799
|
-
|
15800
|
-
|
15801
|
-
|
15802
|
-
|
15809
|
+
<input class="sc-nano-global-search-results filter-cb" type="checkbox" value="{{ filter }}" id="type-{{ filter }}-{{x}}" />
|
15810
|
+
<label class="sc-nano-global-search-results filter-label" for="type-{{ filter }}-{{x}}">
|
15811
|
+
<span>{{ filter | public_name }} (<strong>{{ filterVal }}</strong>)</span>
|
15812
|
+
</label>
|
15813
|
+
</li>
|
15803
15814
|
{{ /foreach }}
|
15804
15815
|
</ul>
|
15805
15816
|
</script>
|
@@ -15809,18 +15820,17 @@ class GlobalSearchResults {
|
|
15809
15820
|
{{ /if }}
|
15810
15821
|
|
15811
15822
|
{{ @if(it.origFilters['channel']) }}
|
15812
|
-
<nano-details open={true}
|
15813
|
-
<strong slot="label">Channels</strong>
|
15814
|
-
<nano-icon slot="icon-end" name="light/chevron-down" size="small"></nano-icon>
|
15823
|
+
<nano-details open={true} label="Channels" size="small">
|
15815
15824
|
<nano-algolia-filter store-id="searchf2" store-method="url-hash-push" filter-name="channel">
|
15816
15825
|
<script type="text/template" slot="filter-template">
|
15817
15826
|
<ul class="sc-nano-global-search-results" data-num="{{(x = 0)}}">
|
15818
15827
|
{{ @foreach(it.dyn) => filter, filterVal }}
|
15819
15828
|
<li class="sc-nano-global-search-results" data-num="{{(x++)}}">
|
15820
|
-
|
15821
|
-
|
15822
|
-
|
15823
|
-
|
15829
|
+
<input class="filter-cb sc-nano-global-search-results" type="checkbox" value="{{ filter }}" id="channel-{{ filter }}-{{x}}" />
|
15830
|
+
<label class="filter-label sc-nano-global-search-results" for="channel-{{ filter }}-{{x}}">
|
15831
|
+
<span>{{ filter | public_name }} (<strong>{{ filterVal }}</strong>)</span>
|
15832
|
+
</label>
|
15833
|
+
</li>
|
15824
15834
|
{{ /foreach }}
|
15825
15835
|
</ul>
|
15826
15836
|
</script>
|
@@ -15830,18 +15840,17 @@ class GlobalSearchResults {
|
|
15830
15840
|
{{ /if }}
|
15831
15841
|
|
15832
15842
|
{{ @if(it.origFilters['authors']) }}
|
15833
|
-
<nano-details open={true}
|
15834
|
-
<strong slot="label">Authors</strong>
|
15835
|
-
<nano-icon slot="icon-end" name="light/chevron-down" size="small"></nano-icon>
|
15843
|
+
<nano-details open={true} label="Authors" size="small">
|
15836
15844
|
<nano-algolia-filter store-id="searchf3" store-method="url-hash-push" filter-name="authors">
|
15837
15845
|
<script type="text/template" slot="filter-template">
|
15838
15846
|
<ul class="sc-nano-global-search-results" data-num="{{(x = 0)}}">
|
15839
15847
|
{{ @foreach(it.dyn) => filter, filterVal }}
|
15840
15848
|
<li class="sc-nano-global-search-results" data-num="{{(x++)}}">
|
15841
|
-
|
15842
|
-
|
15843
|
-
|
15844
|
-
|
15849
|
+
<input class="filter-cb sc-nano-global-search-results" type="checkbox" value="{{ filter }}" id="authors-{{ filter }}-{{x}}" />
|
15850
|
+
<label class="filter-label sc-nano-global-search-results" for="authors-{{ filter }}-{{x}}">
|
15851
|
+
<span>{{ filter | public_name }} (<strong>{{ filterVal }}</strong>)</span>
|
15852
|
+
</label>
|
15853
|
+
</li>
|
15845
15854
|
{{ /foreach }}
|
15846
15855
|
</ul>
|
15847
15856
|
</script>
|
@@ -15851,19 +15860,18 @@ class GlobalSearchResults {
|
|
15851
15860
|
{{ /if }}
|
15852
15861
|
|
15853
15862
|
{{ @if(it.origFilters['categories_without_path']) }}
|
15854
|
-
<nano-details open={true}
|
15855
|
-
<strong slot="label">Category</strong>
|
15856
|
-
<nano-icon slot="icon-end" name="light/chevron-down" size="small"></nano-icon>
|
15863
|
+
<nano-details open={true} label="Categories" size="small">
|
15857
15864
|
<nano-algolia-filter store-id="searchf4" store-method="url-hash-push" filter-name="categories_without_path">
|
15858
15865
|
<script type="text/template" slot="filter-template">
|
15859
15866
|
<ul class="sc-nano-global-search-results" data-num="{{(x = 0)}}">
|
15860
15867
|
{{ @foreach(it.dyn) => filter, filterVal }}
|
15861
15868
|
{{ @if(!filter.match(/publication/)) }}
|
15862
15869
|
<li class="sc-nano-global-search-results" data-num="{{(x++)}}">
|
15863
|
-
|
15864
|
-
|
15865
|
-
|
15866
|
-
|
15870
|
+
<input class="sc-nano-global-search-results filter-cb" type="checkbox" value="{{ filter }}" id="cwp-{{ filter }}-{{x}}" />
|
15871
|
+
<label class="sc-nano-global-search-results filter-label" for="cwp-{{ filter }}-{{x}}">
|
15872
|
+
<span>{{ filter | public_name }} (<strong>{{ filterVal }}</strong>)</span>
|
15873
|
+
</label>
|
15874
|
+
</li>
|
15867
15875
|
{{ /if }}
|
15868
15876
|
{{ /foreach }}
|
15869
15877
|
</ul>
|
@@ -15874,18 +15882,19 @@ class GlobalSearchResults {
|
|
15874
15882
|
{{ /if }}
|
15875
15883
|
|
15876
15884
|
{{ @if(it.origFilters['tags']) }}
|
15877
|
-
<nano-details open={true}
|
15878
|
-
<strong slot="label">Tags</strong>
|
15879
|
-
<nano-icon slot="icon-end" name="light/chevron-down" size="small"></nano-icon>
|
15885
|
+
<nano-details open={true} label="Tags" size="small">
|
15880
15886
|
<nano-algolia-filter store-id="searchf5" store-method="url-hash-push" filter-name="tags">
|
15881
15887
|
<script type="text/template" slot="filter-template">
|
15882
15888
|
<ul class="sc-nano-global-search-results" data-num="{{(x = 0)}}">
|
15883
15889
|
{{ @foreach(it.dyn) => filter, filterVal }}
|
15884
|
-
|
15885
|
-
|
15886
|
-
|
15887
|
-
|
15888
|
-
|
15890
|
+
{{ @if(!filter.match('>')) }}
|
15891
|
+
<li class="sc-nano-global-search-results" data-num="{{(x++)}}">
|
15892
|
+
<input class="filter-cb sc-nano-global-search-results" type="checkbox" value="{{ filter | lowercase }}" id="tags-{{ filter }}-{{x}}" />
|
15893
|
+
<label class="filter-label sc-nano-global-search-results" for="tags-{{ filter }}-{{x}}">
|
15894
|
+
<span>{{ filter | public_name }} (<strong>{{ filterVal }}</strong>)</span>
|
15895
|
+
</label>
|
15896
|
+
</li>
|
15897
|
+
{{ /if }}
|
15889
15898
|
{{ /foreach }}
|
15890
15899
|
</ul>
|
15891
15900
|
</script>
|
@@ -15897,7 +15906,7 @@ class GlobalSearchResults {
|
|
15897
15906
|
</div>
|
15898
15907
|
</div>
|
15899
15908
|
{{ /if }}
|
15900
|
-
</div>`), h("div", { key: '
|
15909
|
+
</div>`), h("div", { key: '33b7b45a25b64b26e7ccd724e0171c997c145540', slot: "output" }), h("slot", { key: '15039307d1b06217c2666eb344a44fe9966a336f' }))));
|
15901
15910
|
}
|
15902
15911
|
static get watchers() { return {
|
15903
15912
|
"algoliaEle": ["handleAlgoliaCredsChange", "handleAlgoliaIndexChange", "handleAlgoliaEleChange"],
|