@coveops/abi 0.9.0 → 1.0.1
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/abi/abi.css +1 -1
- package/dist/abi/abi.esm.js +1 -1
- package/dist/abi/index.esm.js +1 -1
- package/dist/abi/{p-0b2d2c7b.entry.js → p-03b6e905.entry.js} +1 -1
- package/dist/abi/p-1fd19815.entry.js +1 -0
- package/dist/abi/{p-9f80f982.entry.js → p-3303b27f.entry.js} +1 -1
- package/dist/abi/p-50003f11.entry.js +1 -0
- package/dist/abi/p-d6d34d34.js +2 -0
- package/dist/abi/p-dd8b0f76.entry.js +1 -0
- package/dist/abi/p-ddacae1a.js +49 -0
- package/dist/bundle/index.css +1 -1
- package/dist/bundle/index.html +64 -57
- package/dist/bundle/index.js +129 -54
- package/dist/cjs/abi.cjs.js +2 -2
- package/dist/cjs/faq-popup-component.cjs.entry.js +3 -3
- package/dist/cjs/{index-87155b50.js → index-355878fc.js} +55 -0
- package/dist/cjs/{index-03be0841.js → index-8f6652e1.js} +4 -1
- package/dist/cjs/index.cjs.js +27 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/results-manager.cjs.entry.js +12 -12
- package/dist/cjs/sample-component.cjs.entry.js +2 -2
- package/dist/cjs/standalone-searchbox-listener.cjs.entry.js +43 -0
- package/dist/cjs/strip-html-component.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/faq-popup-component/faq-popup-component.css +6 -0
- package/dist/collection/components/results-manager/results-manager.js +2 -0
- package/dist/collection/components/standalone-searchbox-listener/standalone-searchbox-listener.css +1 -0
- package/dist/collection/components/standalone-searchbox-listener/standalone-searchbox-listener.js +45 -0
- package/dist/collection/index.js +26 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +123 -17
- package/dist/esm/abi.js +2 -2
- package/dist/esm/faq-popup-component.entry.js +3 -3
- package/dist/esm/{index-99665e7c.js → index-3c594d24.js} +55 -0
- package/dist/esm/{index-42e9a708.js → index-886ab6f0.js} +2 -2
- package/dist/esm/index.js +27 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/results-manager.entry.js +12 -12
- package/dist/esm/sample-component.entry.js +2 -2
- package/dist/esm/standalone-searchbox-listener.entry.js +39 -0
- package/dist/esm/strip-html-component.entry.js +1 -1
- package/dist/types/components/standalone-searchbox-listener/standalone-searchbox-listener.d.ts +7 -0
- package/dist/types/components.d.ts +13 -0
- package/package.json +1 -1
- package/src/components/faq-popup-component/faq-popup-component.css +6 -0
- package/src/components/results-manager/AppTemplate.html +1 -1
- package/src/components/results-manager/DocumentsTemplate.html +4 -1
- package/src/components/results-manager/ELearningTemplate.html +1 -1
- package/src/components/results-manager/FAQTemplate.html +6 -2
- package/src/components/results-manager/KATemplate.html +7 -4
- package/src/components/results-manager/MediaTemplate.html +35 -8
- package/src/components/results-manager/PeopleTemplate.html +9 -1
- package/src/components/results-manager/QuickLinksTemplate.html +2 -2
- package/src/components/results-manager/SitePagesTemplate.html +11 -6
- package/src/components/results-manager/results-manager.tsx +4 -0
- package/src/components/results-manager/template-1.html +37 -12
- package/src/components/standalone-searchbox-listener/standalone-searchbox-listener.css +1 -0
- package/src/components/standalone-searchbox-listener/standalone-searchbox-listener.tsx +52 -0
- package/src/components.d.ts +13 -0
- package/src/index.ts +29 -1
- package/src/pages/index.html +64 -57
- package/src/pages/recs.html +59 -0
- package/src/style/index.css +8 -1
- package/dist/abi/p-0f4a7ce9.js +0 -49
- package/dist/abi/p-d46927d1.entry.js +0 -1
- package/dist/abi/p-e7416b40.entry.js +0 -1
- package/dist/abi/p-facfefe1.js +0 -2
package/src/pages/index.html
CHANGED
|
@@ -33,66 +33,73 @@
|
|
|
33
33
|
<style>
|
|
34
34
|
</style>
|
|
35
35
|
<atomic-hosted-page>
|
|
36
|
-
<
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
36
|
+
<section style="height: 50px;">
|
|
37
|
+
<atomic-search-interface id="searchbox" search-hub="communityCoveo">
|
|
38
|
+
<atomic-layout-section style="justify-self:center" section="search">
|
|
39
|
+
<atomic-search-box></atomic-search-box>
|
|
40
|
+
</atomic-layout-section>
|
|
41
|
+
</atomic-search-interface>
|
|
42
|
+
</section>
|
|
43
|
+
<section>
|
|
44
|
+
<atomic-search-interface id="search" fields-to-include='[
|
|
45
|
+
"sfcaseid", "sfppcustomlinkcpplinkurlc", "sfcaseppstatus", "sfcaseppstatusc", "sfcasestatus",
|
|
46
|
+
"sfppcustomlinkcppiconc", "sfcasenumber", "sfcaseppprocessc", "sfppleaveabsencecppactiontypec",
|
|
47
|
+
"sfppleaveabsencecppactionreasonc", "sfppleaveabsencecppenddatecfq", "sfppleaveabsencecppenddatecfy",
|
|
48
|
+
"sfppleaveabsencecppstartdatecfq", "sfppleaveabsencecppstartdatecfy", "sfppleaveabsencecppstartdatec",
|
|
49
|
+
"sfppleaveabsencecppenddatec", "sfrecordtypename", "sfcasepprequesterc", "sfcaseemployeec",
|
|
50
|
+
"sfppourcompanylinkdetailcppcontentc", "sfppourcompanylinkdetailcid", "sfppcustomlinkname", "sfppcustomlinkid",
|
|
51
|
+
"sfppmyteamcppemployeenumberc", "sfppmyteamcpppositionc", "sfppmyteamcppemailc", "sfppmyteamcppphonenumberc",
|
|
52
|
+
"sfppmyteamcppmanagersemployeenumberc", "sfppmyteamcppmanagersnamec", "function", "owner", "businessunit",
|
|
53
|
+
"datesubmitted", "bestpracticezone", "connectortype", "clickUri", "zone", "roadmap", "strategy", "sfkeywordc",
|
|
54
|
+
"spitemtype", "splistbasetype", "splisttype", "title", "searchablemeta", "totalNumberOfChildResults",
|
|
55
|
+
"moreinformation", "picture", "targettab", "targettemplate", "metatype", "resultimage", "sfppzonec",
|
|
56
|
+
"sfppemployeeworklocationc", "sfppbusinessfunctionc", "sfpersonemail", "sfpppositontitlec", "istailoredmappingtype",
|
|
57
|
+
"resultpicture", "abicontenttype", "containsattachment", "spsitename", "spsiteuri", "attachmentfilename", "parents",
|
|
58
|
+
"sysparents", "description", "answer","newmoreinfo", "filetype","sfppcustomlinkcppdescriptionc","trainingsource","function","category","sfpersonemail","sfppbusinessfunctionc","sfppemployeeworklocationc","duration"
|
|
59
|
+
]'><atomic-modal id="faq-modal" is-open="false">
|
|
60
|
+
<div slot="header" style="display: grid;grid-template-columns: 5fr 01fr; width:100%;">
|
|
61
|
+
<div class="header-title" style="padding-top:2%;">This is a title</div>
|
|
62
|
+
<div id="faq-modal-close" style="text-align: end;">
|
|
63
|
+
<svg width="48" height="49" viewBox="0 0 48 49" fill="black" xmlns="http://www.w3.org/2000/svg">
|
|
64
|
+
<rect y="0.5" width="48" height="48" rx="24" fill="white"/>
|
|
65
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M22.5382 24.5L15 16.9618L16.4618 15.5L24 23.0382L31.5382 15.5L33 16.9618L25.4618 24.5L33 32.0382L31.5382 33.5L24 25.9618L16.4618 33.5L15 32.0382L22.5382 24.5Z" fill="#17171A"/>
|
|
66
|
+
</svg>
|
|
67
|
+
</div>
|
|
68
|
+
|
|
59
69
|
</div>
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
<!-- <atomic-layout-section section="facets">
|
|
70
|
-
<atomic-facet-manager>
|
|
71
|
-
<atomic-facet field="abicontenttype" label="Filetype"></atomic-facet>
|
|
72
|
-
<atomic-facet field="source" label="Source"></atomic-facet>
|
|
73
|
-
</atomic-facet-manager>
|
|
74
|
-
</atomic-layout-section> -->
|
|
75
|
-
<atomic-layout-section section="main">
|
|
76
|
-
<atomic-layout-section section="status">
|
|
77
|
-
<atomic-breadbox></atomic-breadbox>
|
|
78
|
-
<atomic-query-summary enable-duration="true"></atomic-query-summary>
|
|
79
|
-
<atomic-refine-toggle></atomic-refine-toggle>
|
|
80
|
-
<atomic-sort-dropdown>
|
|
81
|
-
<atomic-sort-expression label="relevance" expression="relevancy"></atomic-sort-expression>
|
|
82
|
-
</atomic-sort-dropdown>
|
|
83
|
-
<atomic-did-you-mean></atomic-did-you-mean>
|
|
70
|
+
<div slot="body" style="max-width: none;">This is the body</div>
|
|
71
|
+
<div slot="footer"><button id="btn-done">Done</button></div>
|
|
72
|
+
</atomic-modal>
|
|
73
|
+
<atomic-search-layout>
|
|
74
|
+
<atomic-layout-section section="facets">
|
|
75
|
+
<atomic-facet-manager>
|
|
76
|
+
<atomic-facet field="abicontenttype" label="Filetype"></atomic-facet>
|
|
77
|
+
<atomic-facet field="source" label="Source"></atomic-facet>
|
|
78
|
+
</atomic-facet-manager>
|
|
84
79
|
</atomic-layout-section>
|
|
85
|
-
<atomic-layout-section section="
|
|
86
|
-
<
|
|
87
|
-
|
|
88
|
-
|
|
80
|
+
<atomic-layout-section section="main">
|
|
81
|
+
<atomic-layout-section section="status">
|
|
82
|
+
<atomic-breadbox></atomic-breadbox>
|
|
83
|
+
<atomic-query-summary enable-duration="true"></atomic-query-summary>
|
|
84
|
+
<atomic-refine-toggle></atomic-refine-toggle>
|
|
85
|
+
<atomic-sort-dropdown>
|
|
86
|
+
<atomic-sort-expression label="relevance" expression="relevancy"></atomic-sort-expression>
|
|
87
|
+
</atomic-sort-dropdown>
|
|
88
|
+
<atomic-did-you-mean></atomic-did-you-mean>
|
|
89
|
+
</atomic-layout-section>
|
|
90
|
+
<atomic-layout-section section="results">
|
|
91
|
+
<results-manager></results-manager>
|
|
92
|
+
<atomic-query-error></atomic-query-error>
|
|
93
|
+
<atomic-no-results></atomic-no-results>
|
|
94
|
+
</atomic-layout-section>
|
|
95
|
+
<atomic-layout-section section="pagination">
|
|
96
|
+
<atomic-pager></atomic-pager>
|
|
97
|
+
</atomic-layout-section>
|
|
89
98
|
</atomic-layout-section>
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
</atomic-search-layout>
|
|
95
|
-
</atomic-search-interface>
|
|
99
|
+
</atomic-search-layout>
|
|
100
|
+
<standalone-searchbox-listener></standalone-searchbox-listener>
|
|
101
|
+
</atomic-search-interface>
|
|
102
|
+
</section>
|
|
96
103
|
</atomic-hosted-page>
|
|
97
104
|
</body>
|
|
98
105
|
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<html lang="en">
|
|
2
|
+
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<!--
|
|
8
|
+
Modifying any <head> attributes of the page locally (including the title attribute) will have no effect when the page is uploaded to the Coveo platform.
|
|
9
|
+
If you wish to modify the page title, you should modify the `name` property defined in the coveo.deploy.json configuration file.
|
|
10
|
+
-->
|
|
11
|
+
<title>Recs-Atomic</title>
|
|
12
|
+
<link href="/atomic/themes/coveo.css" rel="stylesheet" />
|
|
13
|
+
<link href="/build/abi.css" rel="stylesheet" />
|
|
14
|
+
<!--
|
|
15
|
+
When using the Coveo CDN - Make sure you're using the same minor version as the packaged Atomic.
|
|
16
|
+
E.g., if you have "@coveo/atomic@2.0.0" installed, use the "/atomic/v2.0.0/" path.
|
|
17
|
+
When deploying with the Coveo CLI, the Atomic CDN defined in the coveo.deploy.json configuration file will be used.
|
|
18
|
+
|
|
19
|
+
<script type="module" src="https://static.cloud.coveo.com/atomic/vMAJOR.MINOR/atomic.esm.js"></script>
|
|
20
|
+
-->
|
|
21
|
+
<script type="module" src="/atomic/atomic.esm.js"></script>
|
|
22
|
+
<!-- Custom Elements Lazy Loading -->
|
|
23
|
+
<script type="module" src="/build/abi.esm.js"></script>
|
|
24
|
+
<!-- Global initialization script -->
|
|
25
|
+
<script type="module" src="/build/index.esm.js"></script>
|
|
26
|
+
</head>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
<body>
|
|
30
|
+
<div class="atomic-recs-layout">
|
|
31
|
+
<!-- Carousel -->
|
|
32
|
+
<atomic-recs-interface
|
|
33
|
+
class="atomic-recs-carousel"
|
|
34
|
+
search-hub="ContentRecs">
|
|
35
|
+
|
|
36
|
+
<atomic-recs-list display="list" number-of-recommendations="10"
|
|
37
|
+
number-of-recommendations-per-page="5">
|
|
38
|
+
<atomic-recs-result-template>
|
|
39
|
+
<template>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
<atomic-result-section-title>
|
|
43
|
+
<atomic-result-link></atomic-result-link>
|
|
44
|
+
</atomic-result-section-title>
|
|
45
|
+
<atomic-result-section-excerpt>
|
|
46
|
+
<atomic-result-text field="excerpt"></atomic-result-text>
|
|
47
|
+
</atomic-result-section-excerpt>
|
|
48
|
+
<atomic-result-section-bottom-metadata>
|
|
49
|
+
<rec-add-to-cart></rec-add-to-cart>
|
|
50
|
+
</atomic-result-section-bottom-metadata>
|
|
51
|
+
|
|
52
|
+
</template>
|
|
53
|
+
</atomic-recs-result-template>
|
|
54
|
+
</atomic-recs-list>
|
|
55
|
+
</atomic-recs-interface>
|
|
56
|
+
</div>
|
|
57
|
+
</body>
|
|
58
|
+
|
|
59
|
+
</html>
|
package/src/style/index.css
CHANGED
|
@@ -19,6 +19,10 @@ atomic-search-box::part(submit-icon) {
|
|
|
19
19
|
color: black;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
atomic-pager {
|
|
23
|
+
margin-top: 5rem !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
22
26
|
atomic-pager::part(page-button) {
|
|
23
27
|
color: #a6a6a6;
|
|
24
28
|
border: thin solid #a6a6a6;
|
|
@@ -54,7 +58,7 @@ atomic-modal#faq-modal::part(header-wrapper) {
|
|
|
54
58
|
display: none;
|
|
55
59
|
}
|
|
56
60
|
atomic-modal::part(backdrop){
|
|
57
|
-
grid-template-columns:
|
|
61
|
+
grid-template-columns: 1fr min(60%) 1fr;
|
|
58
62
|
}
|
|
59
63
|
atomic-modal::part(header){
|
|
60
64
|
max-width: none;
|
|
@@ -90,6 +94,9 @@ atomic-modal#faq-modal table tr {
|
|
|
90
94
|
atomic-modal#faq-modal table tr td {
|
|
91
95
|
padding: 1.5rem;
|
|
92
96
|
}
|
|
97
|
+
atomic-modal#faq-modal table tr td:nth-child(2) {
|
|
98
|
+
word-break: break-word;
|
|
99
|
+
}
|
|
93
100
|
atomic-modal#faq-modal table tr td a {
|
|
94
101
|
color: #caa144;
|
|
95
102
|
}
|