@nanoporetech-digital/components 2.1.3 → 2.1.4
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/CHANGELOG.md +8 -0
- package/dist/cjs/nano-global-search-results.cjs.entry.js +36 -26
- package/dist/cjs/nano-global-search-results.cjs.entry.js.map +1 -1
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/alert/alert.js +1 -1
- package/dist/collection/components/algolia/algolia-filter.js +2 -2
- package/dist/collection/components/algolia/algolia-input.js +5 -5
- package/dist/collection/components/algolia/algolia-results.js +1 -1
- package/dist/collection/components/algolia/algolia.js +6 -6
- package/dist/collection/components/checkbox/checkbox-group.js +2 -2
- package/dist/collection/components/checkbox/checkbox.js +3 -3
- package/dist/collection/components/datalist/datalist.js +1 -1
- package/dist/collection/components/date-input/date-input.js +7 -7
- package/dist/collection/components/date-picker/date-picker.js +5 -5
- package/dist/collection/components/details/details.js +1 -1
- package/dist/collection/components/dialog/dialog.js +1 -1
- package/dist/collection/components/file-upload/file-upload.js +4 -4
- package/dist/collection/components/global-nav/global-nav.js +4 -4
- package/dist/collection/components/global-search-results/global-search-results.css +21 -0
- package/dist/collection/components/global-search-results/global-search-results.js +35 -25
- package/dist/collection/components/global-search-results/global-search-results.js.map +1 -1
- package/dist/collection/components/grid/grid-item.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/input/input.js +5 -5
- package/dist/collection/components/nav-item/nav-item.js +4 -4
- package/dist/collection/components/range/range.js +4 -4
- package/dist/collection/components/resize-observe/resize-observe.js +1 -1
- package/dist/collection/components/select/select.js +7 -7
- package/dist/collection/components/slides/slides.js +7 -7
- package/dist/collection/components/tabs/tab-group.js +2 -2
- package/dist/components/nano-global-search-results.js +36 -26
- package/dist/components/nano-global-search-results.js.map +1 -1
- package/dist/custom-elements/index.js +36 -26
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/nano-global-search-results.entry.js +36 -26
- package/dist/esm/nano-global-search-results.entry.js.map +1 -1
- package/dist/esm-es5/nano-global-search-results.entry.js +1 -1
- package/dist/esm-es5/nano-global-search-results.entry.js.map +1 -1
- package/dist/nano-components/nano-components.esm.js +1 -1
- package/dist/nano-components/p-096682d9.system.js +1 -1
- package/dist/nano-components/p-1f99d776.entry.js +5 -0
- package/dist/nano-components/p-1f99d776.entry.js.map +1 -0
- package/dist/nano-components/p-6afdb510.system.entry.js +5 -0
- package/dist/nano-components/p-6afdb510.system.entry.js.map +1 -0
- package/dist/themes/london-calling.css +1 -1
- package/dist/themes/london-calling.css.map +1 -1
- package/dist/themes/nanopore.css +1 -1
- package/dist/themes/nanopore.css.map +1 -1
- package/docs-json.json +1 -1
- package/package.json +2 -2
- package/dist/nano-components/p-05844b46.system.entry.js +0 -5
- package/dist/nano-components/p-05844b46.system.entry.js.map +0 -1
- package/dist/nano-components/p-fea32549.entry.js +0 -5
- package/dist/nano-components/p-fea32549.entry.js.map +0 -1
@@ -228,7 +228,7 @@ export class AlgoliaInput {
|
|
228
228
|
"references": {
|
229
229
|
"SearchIndex": {
|
230
230
|
"location": "import",
|
231
|
-
"path": "/builds/
|
231
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
232
232
|
}
|
233
233
|
}
|
234
234
|
},
|
@@ -349,7 +349,7 @@ export class AlgoliaInput {
|
|
349
349
|
"references": {
|
350
350
|
"StorageMethods": {
|
351
351
|
"location": "import",
|
352
|
-
"path": "/builds/
|
352
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/utils/store/component-store.ts"
|
353
353
|
}
|
354
354
|
}
|
355
355
|
},
|
@@ -390,7 +390,7 @@ export class AlgoliaInput {
|
|
390
390
|
"references": {
|
391
391
|
"AloliaSearchResultDetail": {
|
392
392
|
"location": "import",
|
393
|
-
"path": "/builds/
|
393
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
394
394
|
}
|
395
395
|
}
|
396
396
|
}
|
@@ -410,7 +410,7 @@ export class AlgoliaInput {
|
|
410
410
|
"references": {
|
411
411
|
"AloliaSearchResultDetail": {
|
412
412
|
"location": "import",
|
413
|
-
"path": "/builds/
|
413
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
414
414
|
}
|
415
415
|
}
|
416
416
|
}
|
@@ -430,7 +430,7 @@ export class AlgoliaInput {
|
|
430
430
|
"references": {
|
431
431
|
"AloliaSearchResultDetail": {
|
432
432
|
"location": "import",
|
433
|
-
"path": "/builds/
|
433
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
434
434
|
}
|
435
435
|
}
|
436
436
|
}
|
@@ -251,7 +251,7 @@ export class AlgoliaResults {
|
|
251
251
|
"references": {
|
252
252
|
"PageChangeEventDetail": {
|
253
253
|
"location": "import",
|
254
|
-
"path": "/builds/
|
254
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
255
255
|
}
|
256
256
|
}
|
257
257
|
}
|
@@ -738,7 +738,7 @@ export class Algolia {
|
|
738
738
|
"references": {
|
739
739
|
"SearchIndex": {
|
740
740
|
"location": "import",
|
741
|
-
"path": "/builds/
|
741
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
742
742
|
}
|
743
743
|
}
|
744
744
|
},
|
@@ -982,7 +982,7 @@ export class Algolia {
|
|
982
982
|
"references": {
|
983
983
|
"StorageMethods": {
|
984
984
|
"location": "import",
|
985
|
-
"path": "/builds/
|
985
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/utils/store/component-store.ts"
|
986
986
|
}
|
987
987
|
}
|
988
988
|
},
|
@@ -1047,7 +1047,7 @@ export class Algolia {
|
|
1047
1047
|
"references": {
|
1048
1048
|
"IndexResult": {
|
1049
1049
|
"location": "import",
|
1050
|
-
"path": "/builds/
|
1050
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
1051
1051
|
}
|
1052
1052
|
}
|
1053
1053
|
}
|
@@ -1067,7 +1067,7 @@ export class Algolia {
|
|
1067
1067
|
"references": {
|
1068
1068
|
"IndexResult": {
|
1069
1069
|
"location": "import",
|
1070
|
-
"path": "/builds/
|
1070
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
1071
1071
|
}
|
1072
1072
|
}
|
1073
1073
|
}
|
@@ -1087,7 +1087,7 @@ export class Algolia {
|
|
1087
1087
|
"references": {
|
1088
1088
|
"IndexResult": {
|
1089
1089
|
"location": "import",
|
1090
|
-
"path": "/builds/
|
1090
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
1091
1091
|
}
|
1092
1092
|
}
|
1093
1093
|
}
|
@@ -1107,7 +1107,7 @@ export class Algolia {
|
|
1107
1107
|
"references": {
|
1108
1108
|
"IndexResult": {
|
1109
1109
|
"location": "import",
|
1110
|
-
"path": "/builds/
|
1110
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
1111
1111
|
}
|
1112
1112
|
}
|
1113
1113
|
}
|
@@ -370,7 +370,7 @@ export class CheckboxGroup {
|
|
370
370
|
"references": {
|
371
371
|
"ControlValidityEventDetail": {
|
372
372
|
"location": "import",
|
373
|
-
"path": "/builds/
|
373
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
374
374
|
}
|
375
375
|
}
|
376
376
|
}
|
@@ -392,7 +392,7 @@ export class CheckboxGroup {
|
|
392
392
|
},
|
393
393
|
"ControlValidity": {
|
394
394
|
"location": "import",
|
395
|
-
"path": "/builds/
|
395
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
396
396
|
}
|
397
397
|
},
|
398
398
|
"return": "Promise<ControlValidity>"
|
@@ -405,7 +405,7 @@ export class Checkbox {
|
|
405
405
|
"references": {
|
406
406
|
"Color": {
|
407
407
|
"location": "import",
|
408
|
-
"path": "/builds/
|
408
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
409
409
|
}
|
410
410
|
}
|
411
411
|
},
|
@@ -441,7 +441,7 @@ export class Checkbox {
|
|
441
441
|
"references": {
|
442
442
|
"CheckboxChangeEventDetail": {
|
443
443
|
"location": "import",
|
444
|
-
"path": "/builds/
|
444
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
445
445
|
}
|
446
446
|
}
|
447
447
|
}
|
@@ -512,7 +512,7 @@ export class Checkbox {
|
|
512
512
|
},
|
513
513
|
"ControlValidity": {
|
514
514
|
"location": "import",
|
515
|
-
"path": "/builds/
|
515
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
516
516
|
}
|
517
517
|
},
|
518
518
|
"return": "Promise<ControlValidity>"
|
@@ -549,7 +549,7 @@ export class DataList {
|
|
549
549
|
"references": {
|
550
550
|
"OptionInterface": {
|
551
551
|
"location": "import",
|
552
|
-
"path": "/builds/
|
552
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
553
553
|
}
|
554
554
|
}
|
555
555
|
},
|
@@ -393,7 +393,7 @@ export class DateInput {
|
|
393
393
|
"references": {
|
394
394
|
"LocalDateOpts": {
|
395
395
|
"location": "import",
|
396
|
-
"path": "/builds/
|
396
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
397
397
|
}
|
398
398
|
}
|
399
399
|
},
|
@@ -514,7 +514,7 @@ export class DateInput {
|
|
514
514
|
"references": {
|
515
515
|
"DaysOfWeek": {
|
516
516
|
"location": "import",
|
517
|
-
"path": "/builds/
|
517
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/utils/date-utils.ts"
|
518
518
|
}
|
519
519
|
}
|
520
520
|
},
|
@@ -538,7 +538,7 @@ export class DateInput {
|
|
538
538
|
"references": {
|
539
539
|
"DuetLocalizedText": {
|
540
540
|
"location": "import",
|
541
|
-
"path": "/builds/
|
541
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
542
542
|
}
|
543
543
|
}
|
544
544
|
},
|
@@ -580,7 +580,7 @@ export class DateInput {
|
|
580
580
|
"references": {
|
581
581
|
"Color": {
|
582
582
|
"location": "import",
|
583
|
-
"path": "/builds/
|
583
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
584
584
|
}
|
585
585
|
}
|
586
586
|
},
|
@@ -932,7 +932,7 @@ export class DateInput {
|
|
932
932
|
"references": {
|
933
933
|
"DateInputChangeEventDetail": {
|
934
934
|
"location": "import",
|
935
|
-
"path": "/builds/
|
935
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
936
936
|
}
|
937
937
|
}
|
938
938
|
}
|
@@ -955,7 +955,7 @@ export class DateInput {
|
|
955
955
|
"references": {
|
956
956
|
"ControlValidityEventDetail": {
|
957
957
|
"location": "import",
|
958
|
-
"path": "/builds/
|
958
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
959
959
|
}
|
960
960
|
}
|
961
961
|
}
|
@@ -977,7 +977,7 @@ export class DateInput {
|
|
977
977
|
},
|
978
978
|
"ControlValidity": {
|
979
979
|
"location": "import",
|
980
|
-
"path": "/builds/
|
980
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
981
981
|
}
|
982
982
|
},
|
983
983
|
"return": "Promise<ControlValidity>"
|
@@ -370,7 +370,7 @@ export class DatePicker {
|
|
370
370
|
"references": {
|
371
371
|
"DaysOfWeek": {
|
372
372
|
"location": "import",
|
373
|
-
"path": "/builds/
|
373
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/utils/date-utils.ts"
|
374
374
|
}
|
375
375
|
}
|
376
376
|
},
|
@@ -395,7 +395,7 @@ export class DatePicker {
|
|
395
395
|
"references": {
|
396
396
|
"DuetLocalizedText": {
|
397
397
|
"location": "import",
|
398
|
-
"path": "/builds/
|
398
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
399
399
|
}
|
400
400
|
}
|
401
401
|
},
|
@@ -418,7 +418,7 @@ export class DatePicker {
|
|
418
418
|
"references": {
|
419
419
|
"Color": {
|
420
420
|
"location": "import",
|
421
|
-
"path": "/builds/
|
421
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
422
422
|
}
|
423
423
|
}
|
424
424
|
},
|
@@ -442,7 +442,7 @@ export class DatePicker {
|
|
442
442
|
"references": {
|
443
443
|
"DateDisabledPredicate": {
|
444
444
|
"location": "import",
|
445
|
-
"path": "/builds/
|
445
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
446
446
|
}
|
447
447
|
}
|
448
448
|
},
|
@@ -521,7 +521,7 @@ export class DatePicker {
|
|
521
521
|
"references": {
|
522
522
|
"PickerChangeEvent": {
|
523
523
|
"location": "import",
|
524
|
-
"path": "/builds/
|
524
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
525
525
|
}
|
526
526
|
}
|
527
527
|
}
|
@@ -234,7 +234,7 @@ export class Details {
|
|
234
234
|
"references": {
|
235
235
|
"Color": {
|
236
236
|
"location": "import",
|
237
|
-
"path": "/builds/
|
237
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
238
238
|
}
|
239
239
|
}
|
240
240
|
},
|
@@ -336,7 +336,7 @@ export class Dialog {
|
|
336
336
|
"references": {
|
337
337
|
"StorageMethods": {
|
338
338
|
"location": "import",
|
339
|
-
"path": "/builds/
|
339
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/utils/store/component-store.ts"
|
340
340
|
}
|
341
341
|
}
|
342
342
|
},
|
@@ -655,7 +655,7 @@ export class FileUpload {
|
|
655
655
|
"references": {
|
656
656
|
"FileWithUrl": {
|
657
657
|
"location": "import",
|
658
|
-
"path": "/builds/
|
658
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
659
659
|
}
|
660
660
|
}
|
661
661
|
},
|
@@ -713,7 +713,7 @@ export class FileUpload {
|
|
713
713
|
"references": {
|
714
714
|
"FileInputChangeEventDetail": {
|
715
715
|
"location": "import",
|
716
|
-
"path": "/builds/
|
716
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
717
717
|
}
|
718
718
|
}
|
719
719
|
}
|
@@ -766,7 +766,7 @@ export class FileUpload {
|
|
766
766
|
"references": {
|
767
767
|
"ControlValidityEventDetail": {
|
768
768
|
"location": "import",
|
769
|
-
"path": "/builds/
|
769
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
770
770
|
}
|
771
771
|
}
|
772
772
|
}
|
@@ -788,7 +788,7 @@ export class FileUpload {
|
|
788
788
|
},
|
789
789
|
"ControlValidity": {
|
790
790
|
"location": "import",
|
791
|
-
"path": "/builds/
|
791
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
792
792
|
}
|
793
793
|
},
|
794
794
|
"return": "Promise<ControlValidity>"
|
@@ -1353,7 +1353,7 @@ export class GlobalNav {
|
|
1353
1353
|
},
|
1354
1354
|
"SearchIndex": {
|
1355
1355
|
"location": "import",
|
1356
|
-
"path": "/builds/
|
1356
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
1357
1357
|
}
|
1358
1358
|
}
|
1359
1359
|
},
|
@@ -1602,7 +1602,7 @@ export class GlobalNav {
|
|
1602
1602
|
"references": {
|
1603
1603
|
"AloliaSearchResultDetail": {
|
1604
1604
|
"location": "import",
|
1605
|
-
"path": "/builds/
|
1605
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
1606
1606
|
}
|
1607
1607
|
}
|
1608
1608
|
}
|
@@ -1622,7 +1622,7 @@ export class GlobalNav {
|
|
1622
1622
|
"references": {
|
1623
1623
|
"AlgoliaNetworkError": {
|
1624
1624
|
"location": "import",
|
1625
|
-
"path": "/builds/
|
1625
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
1626
1626
|
}
|
1627
1627
|
}
|
1628
1628
|
}
|
@@ -1642,7 +1642,7 @@ export class GlobalNav {
|
|
1642
1642
|
"references": {
|
1643
1643
|
"AloliaSearchResultDetail": {
|
1644
1644
|
"location": "import",
|
1645
|
-
"path": "/builds/
|
1645
|
+
"path": "/builds/99mRzSBj/0/Digital/nano-components/packages/components/src/interface.d.ts"
|
1646
1646
|
}
|
1647
1647
|
}
|
1648
1648
|
}
|
@@ -1034,4 +1034,25 @@
|
|
1034
1034
|
-webkit-box-flex: 1;
|
1035
1035
|
-ms-flex: 1 0 auto;
|
1036
1036
|
flex: 1 0 auto;
|
1037
|
+
}
|
1038
|
+
|
1039
|
+
.search-empty {
|
1040
|
+
padding: 3rem 0;
|
1041
|
+
text-align: center;
|
1042
|
+
border-top: 1px solid #e5eef1;
|
1043
|
+
}
|
1044
|
+
.search-empty h2 {
|
1045
|
+
color: #455556;
|
1046
|
+
font-size: 1.125rem;
|
1047
|
+
margin-bottom: 0.5rem;
|
1048
|
+
}
|
1049
|
+
.search-empty-icon {
|
1050
|
+
font-size: 7rem;
|
1051
|
+
--icon-color: #e4e6e8;
|
1052
|
+
margin-bottom: 2rem;
|
1053
|
+
}
|
1054
|
+
|
1055
|
+
.search__highlight {
|
1056
|
+
background: #fbffbf;
|
1057
|
+
font-style: normal;
|
1037
1058
|
}
|
@@ -252,14 +252,24 @@ export class GlobalSearchResults {
|
|
252
252
|
</script>
|
253
253
|
|
254
254
|
<script type="text/template" slot="result-template">
|
255
|
+
<!-- START NO CONTENT -->
|
256
|
+
{{ @if ((!it.results || !it.results.length)) }}
|
257
|
+
<div class="search-empty">
|
258
|
+
<nano-icon name="light/search" class="search-empty-icon"></nano-icon>
|
259
|
+
<h2>No matches found...</h2>
|
260
|
+
<p>Please try a different search query.</p>
|
261
|
+
</div>
|
262
|
+
{{ /if }}
|
263
|
+
<!-- END NO CONTENT -->
|
255
264
|
{{ @if (it.totalHitsWithFilters > 0) }}
|
256
265
|
{{ @each(it.results) => result }}
|
266
|
+
{{ contentType = result.content_type ? result.content_type : result.type }}
|
257
267
|
<li class="sc-nano-global-search-results">
|
258
268
|
<div class="sc-nano-global-search-results result">
|
259
269
|
<h4 class="sc-nano-global-search-results result__title" data-icon-set="{{(iconSet = false)}}">
|
260
270
|
<a href="{{ result.url | abs_url(it, result) }}">
|
261
|
-
{{ result.title | safe }}
|
262
|
-
{{ @if (
|
271
|
+
{{ result._snippetResult.title.value | safe }}
|
272
|
+
{{ @if (contentType === 'technical_document' || contentType === 'literature' || contentType === 'white_paper' || contentType === 'protocol') }}
|
263
273
|
<span class="sc-nano-global-search-results result__pdf">PDF</span>
|
264
274
|
{{ /if }}
|
265
275
|
</a>
|
@@ -277,7 +287,7 @@ export class GlobalSearchResults {
|
|
277
287
|
</a>
|
278
288
|
{{ /if }}
|
279
289
|
{{ /if }}
|
280
|
-
{{ @if (
|
290
|
+
{{ @if (contentType === 'video' || contentType === 'lc_lightning_talk' ) }}
|
281
291
|
{{ @if (result.name) }}
|
282
292
|
<a class="sc-nano-global-search-results result__authors" href="{{ result.url | abs_url(it, result) }}">Speaker: {{ result.name | trim_to(50) }}</a>
|
283
293
|
{{ /if }}
|
@@ -290,17 +300,17 @@ export class GlobalSearchResults {
|
|
290
300
|
<div class="sc-nano-global-search-results result__body">
|
291
301
|
<div class="sc-nano-global-search-results result__description">
|
292
302
|
{{ @if (result.description) }}
|
293
|
-
{{ result.description | safe
|
303
|
+
{{ result._snippetResult.description.value | safe }}
|
294
304
|
{{ /if }}
|
295
305
|
</div>
|
296
306
|
</div>
|
297
307
|
<div class="sc-nano-global-search-results result__meta">
|
298
|
-
{{ @if (result.type) }}
|
308
|
+
{{ @if (result.type || result.content_type) }}
|
299
309
|
<div class="sc-nano-global-search-results result__type">
|
300
|
-
{{ @if (
|
310
|
+
{{ @if (contentType === 'lc_lightning_talk') }}
|
301
311
|
Presentation
|
302
312
|
{{ #else }}
|
303
|
-
{{
|
313
|
+
{{ contentType }}
|
304
314
|
{{ /if }}
|
305
315
|
</div>
|
306
316
|
{{ /if }}
|
@@ -326,14 +336,14 @@ export class GlobalSearchResults {
|
|
326
336
|
</a>
|
327
337
|
{{ /if }}
|
328
338
|
{{ @if (result.body) }}
|
329
|
-
<a class="sc-nano-global-search-results result__body" href="{{ result.url | abs_url(it, result) }}">{{ result.body | safe
|
339
|
+
<a class="sc-nano-global-search-results result__body" href="{{ result.url | abs_url(it, result) }}">{{ result._snippetResult.body.value | safe }}</a>
|
330
340
|
{{ /if }}
|
331
|
-
{{ @if (
|
341
|
+
{{ @if (contentType === 'product' }}
|
332
342
|
<div class="sc-nano-global-search-results result__buttons">
|
333
343
|
<a class="sc-nano-global-search-results result__buttons-button" href="{{ result.url | abs_url(it, result) }}">View product</a>
|
334
344
|
</div>
|
335
345
|
{{ /if }}
|
336
|
-
{{ @if (
|
346
|
+
{{ @if (contentType === 'event') }}
|
337
347
|
<a class="sc-nano-global-search-results result__promo" href="{{ result.url | abs_url(it, result) }}">
|
338
348
|
<div class="sc-nano-global-search-results result__promo-box">
|
339
349
|
<div class="sc-nano-global-search-results result__promo-bigdate">
|
@@ -363,38 +373,38 @@ export class GlobalSearchResults {
|
|
363
373
|
</div>
|
364
374
|
</a>
|
365
375
|
{{ /if }}
|
366
|
-
{{ @if (
|
376
|
+
{{ @if (contentType !== 'lc_lightning_talk' && contentType !== 'video') }}
|
367
377
|
<div class="sc-nano-global-search-results result__meta">
|
368
|
-
{{ @if (result.type) }}
|
378
|
+
{{ @if (result.type || result.content_type) }}
|
369
379
|
<div class="sc-nano-global-search-results result__type">
|
370
|
-
{{ @if (
|
380
|
+
{{ @if (contentType === 'news_item') }}
|
371
381
|
News
|
372
|
-
{{ #elif (
|
382
|
+
{{ #elif (contentType === 'static_page' || contentType === 'bespoke') }}
|
373
383
|
Page
|
374
|
-
{{ #elif (
|
384
|
+
{{ #elif (contentType === 'case_study') }}
|
375
385
|
Case study
|
376
|
-
{{ #elif (
|
386
|
+
{{ #elif (contentType === 'lc_poster') }}
|
377
387
|
Poster
|
378
|
-
{{ #elif (
|
388
|
+
{{ #elif (contentType === 'nanopore_live') }}
|
379
389
|
Live stream
|
380
|
-
{{ #elif (
|
390
|
+
{{ #elif (contentType === 'data_release') }}
|
381
391
|
Data release
|
382
|
-
{{ #elif (
|
392
|
+
{{ #elif (contentType === 'research_area') }}
|
383
393
|
Research area
|
384
|
-
{{ #elif (
|
394
|
+
{{ #elif (contentType === 'white_paper') }}
|
385
395
|
White paper
|
386
|
-
{{ #elif (
|
396
|
+
{{ #elif (contentType === 'technical_document') }}
|
387
397
|
Technical document
|
388
|
-
{{ #elif (
|
398
|
+
{{ #elif (contentType === 'info_sheet') }}
|
389
399
|
Info sheet
|
390
|
-
{{ #elif (
|
400
|
+
{{ #elif (contentType === 'lc_home' || contentType === 'lc_venue') }}
|
391
401
|
London Calling
|
392
402
|
{{ #else }}
|
393
|
-
{{
|
403
|
+
{{ contentType }}
|
394
404
|
{{ /if }}
|
395
405
|
</div>
|
396
406
|
{{ /if }}
|
397
|
-
{{ @if (
|
407
|
+
{{ @if (contentType !== 'event') }}
|
398
408
|
{{ @if (result.updated) }}
|
399
409
|
<div class="sc-nano-global-search-results result__date">{{ result.updated | date_long({year: 'numeric', month: 'short', day: 'numeric'}) }}</div>
|
400
410
|
{{ #else }}
|