@coveops/abi 0.8.0 → 1.0.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.
Files changed (34) hide show
  1. package/dist/abi/abi.css +1 -1
  2. package/dist/abi/abi.esm.js +1 -1
  3. package/dist/abi/index.esm.js +1 -1
  4. package/dist/abi/{p-0b2d2c7b.entry.js → p-211c1e78.entry.js} +1 -1
  5. package/dist/abi/p-dca22988.entry.js +1 -0
  6. package/dist/bundle/index.css +1 -1
  7. package/dist/bundle/index.html +2 -2
  8. package/dist/bundle/index.js +135 -53
  9. package/dist/cjs/faq-popup-component.cjs.entry.js +1 -1
  10. package/dist/cjs/index.cjs.js +1 -1
  11. package/dist/cjs/results-manager.cjs.entry.js +11 -11
  12. package/dist/collection/components/faq-popup-component/faq-popup-component.css +6 -0
  13. package/dist/collection/components/results-manager/results-manager.js +2 -0
  14. package/dist/components/index.js +13 -13
  15. package/dist/esm/faq-popup-component.entry.js +1 -1
  16. package/dist/esm/index.js +1 -1
  17. package/dist/esm/results-manager.entry.js +11 -11
  18. package/package.json +1 -1
  19. package/src/components/faq-popup-component/faq-popup-component.css +6 -0
  20. package/src/components/results-manager/AppTemplate.html +1 -1
  21. package/src/components/results-manager/DocumentsTemplate.html +4 -1
  22. package/src/components/results-manager/ELearningTemplate.html +1 -1
  23. package/src/components/results-manager/FAQTemplate.html +6 -2
  24. package/src/components/results-manager/KATemplate.html +7 -4
  25. package/src/components/results-manager/MediaTemplate.html +35 -8
  26. package/src/components/results-manager/PeopleTemplate.html +9 -1
  27. package/src/components/results-manager/QuickLinksTemplate.html +8 -1
  28. package/src/components/results-manager/SitePagesTemplate.html +11 -6
  29. package/src/components/results-manager/results-manager.tsx +4 -0
  30. package/src/components/results-manager/template-1.html +37 -12
  31. package/src/pages/index.html +2 -2
  32. package/src/pages/recs.html +59 -0
  33. package/src/style/index.css +8 -1
  34. package/dist/abi/p-1c8e5ecc.entry.js +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coveops/abi",
3
3
  "description": "Abi project",
4
- "version": "0.8.0",
4
+ "version": "1.0.0",
5
5
  "private": false,
6
6
  "main": "dist/index.cjs.js",
7
7
  "module": "dist/index.js",
@@ -1,3 +1,9 @@
1
1
  b {
2
2
  color: var(--atomic-primary);
3
3
  }
4
+ :host {
5
+ color: #CAA144 !important;
6
+ font-size: 1.7rem !important;
7
+ max-height: unset !important;
8
+ line-height: normal !important;
9
+ }
@@ -27,7 +27,7 @@
27
27
 
28
28
  atomic-result-section-excerpt {
29
29
  font-size: 1.3rem !important;
30
- margin-top: 2px !important;
30
+ margin-top: 0.875rem !important;
31
31
  max-height: unset !important;
32
32
  line-height: normal !important;
33
33
  }
@@ -34,7 +34,7 @@
34
34
 
35
35
  atomic-result-section-excerpt {
36
36
  font-size: 1.3rem !important;
37
- margin-top: 2px !important;
37
+ margin-top: 0.875rem !important;
38
38
  max-height: unset !important;
39
39
  line-height: normal !important;
40
40
  }
@@ -55,6 +55,9 @@
55
55
  display: flex;
56
56
  align-items: center;
57
57
  }
58
+ atomic-result-date{
59
+ font-size:1.0rem;
60
+ }
58
61
  </style>
59
62
 
60
63
  <atomic-result-section-visual>
@@ -30,7 +30,7 @@
30
30
  }
31
31
  atomic-result-section-excerpt {
32
32
  font-size: 1.3rem !important;
33
- margin-top: 2px !important;
33
+ margin-top: 0.875rem !important;
34
34
  max-height: unset !important;
35
35
  line-height: normal !important;
36
36
  }
@@ -11,7 +11,7 @@
11
11
 
12
12
  atomic-result-section-excerpt {
13
13
  font-size: 1.3rem !important;
14
- margin-top: 2px !important;
14
+ margin-top: 0.875rem !important;
15
15
  max-height: unset !important;
16
16
  line-height: normal !important;
17
17
  }
@@ -28,7 +28,7 @@
28
28
  }
29
29
  atomic-result-section-excerpt {
30
30
  font-size: 1.3rem !important;
31
- margin-top: 2px !important;
31
+ margin-top: 0.875rem !important;
32
32
  max-height: unset !important;
33
33
  line-height: normal !important;
34
34
  }
@@ -70,6 +70,10 @@ atomic-result-section-visual {
70
70
  display: grid;
71
71
  align-items: center;
72
72
  }
73
+
74
+ atomic-result-date{
75
+ font-size:1.0rem;
76
+ }
73
77
  </style>
74
78
 
75
79
  <atomic-result-section-visual>
@@ -12,7 +12,7 @@
12
12
 
13
13
  atomic-result-section-excerpt {
14
14
  font-size: 1.3rem !important;
15
- margin-top: 2px !important;
15
+ margin-top: 0.875rem !important;
16
16
  max-height: unset !important;
17
17
  line-height: normal !important;
18
18
  }
@@ -29,7 +29,7 @@
29
29
  line-height: 18px !important;
30
30
  display: grid;
31
31
  grid-template-columns: 0.5fr 0.5fr 1fr;
32
- gap: 1rem;
32
+ gap: 5rem;
33
33
  align-items: center;
34
34
  }
35
35
  atomic-result-section-title a {
@@ -52,6 +52,9 @@
52
52
  justify-content: center;
53
53
 
54
54
  }
55
+ atomic-result-date{
56
+ font-size:1.0rem;
57
+ }
55
58
  </style>
56
59
 
57
60
  <atomic-result-section-visual>
@@ -130,9 +133,9 @@
130
133
  <atomic-result-date></atomic-result-date>
131
134
  </span> <span>
132
135
  <atomic-field-condition class="field" must-match-source="ServiceNow - Knowledge">
133
- </a><atomic-text value="Source: ServiceNow"></atomic-text>
136
+ </a><atomic-text value="Source: ServiceNow Articles"></atomic-text>
134
137
  </atomic-field-condition>
135
- </span> <span>
138
+
136
139
  <atomic-field-condition class="field" must-match-source="Salesforce - Guru">
137
140
  <atomic-text value="Source: Guru Articles">
138
141
  </atomic-field-condition>
@@ -10,7 +10,7 @@
10
10
  }
11
11
  atomic-result-section-excerpt {
12
12
  font-size: 1.3rem !important;
13
- margin-top: 2px !important;
13
+ margin-top: 0.875rem !important;
14
14
  max-height: unset !important;
15
15
  line-height: normal !important;
16
16
  }
@@ -21,6 +21,10 @@
21
21
  color: #A6A6A6 !important;
22
22
  }
23
23
 
24
+ atomic-result-section-bottom-metadata a {
25
+ color: #A6A6A6 !important;
26
+ }
27
+
24
28
 
25
29
  atomic-result-section-title a {
26
30
  color: #CAA144 !important;
@@ -40,16 +44,32 @@
40
44
  justify-content: center;
41
45
 
42
46
  }
47
+
48
+ atomic-result-section-bottom-metadata {
49
+ margin-top: 2px;
50
+ color: #A6A6A6 !important;
51
+ font-size: 1rem !important;
52
+ margin-right: 3px;
53
+ line-height: 18px !important;
54
+ display: grid;
55
+ grid-template-columns: auto auto auto;
56
+ gap: 1rem;
57
+ align-items: center;
58
+ }
59
+
60
+ atomic-result-date{
61
+ font-size:1.0rem;
62
+ }
43
63
  </style>
44
64
 
45
65
  <atomic-result-section-visual>
46
- <atomic-field-condition class="field" must-match-filetype="mp4,wmv,avi,MOV,flv,mkv,webm,ogg,ogv,m4v">
47
- <img src="https://cdn.jsdelivr.net/npm/@coveops/abi@latest/dist/abi/images/Images.png" alt="Image" />
66
+ <atomic-field-condition class="field" must-match-filetype="mp4,wmv,avi,MOV,flv,mkv,webm,ogg,ogv,m4v,mpg">
67
+ <img src="https://cdn.jsdelivr.net/npm/@coveops/abi@latest/dist/abi/images/Movies.png" alt="Image" />
48
68
  <!-- <atomic-icon class="icon"></atomic-icon>
49
69
  <img src="https://abiglobal--c.vf.force.com/resource/PP_Coveo/img/Movies.png" class="thumbnail"> -->
50
70
  </atomic-field-condition>
51
- <atomic-field-condition class="field" must-match-filetype="gif,jpeg,jpg,png,bmp,Image,mp3,mp4,wmv,avi,MOV,flv,mkv,webm,ogg,ogv,m4v">
52
- <img src="https://cdn.jsdelivr.net/npm/@coveops/abi@latest/dist/abi/images/Movies.png" alt="Image" />
71
+ <atomic-field-condition class="field" must-match-filetype="gif,jpeg,jpg,png,bmp,Image">
72
+ <img src="https://cdn.jsdelivr.net/npm/@coveops/abi@latest/dist/abi/images/Images.png" alt="Image" />
53
73
  <!-- <atomic-icon class="icon"></atomic-icon>
54
74
  <img src="https://abiglobal--c.vf.force.com/resource/PP_Coveo/img/Images.png" class="thumbnail"> -->
55
75
  </atomic-field-condition>
@@ -62,7 +82,14 @@
62
82
 
63
83
 
64
84
  <atomic-result-section-bottom-metadata>
65
- <atomic-result-fields-list>
66
- <atomic-result-text field="PrintableUri"></atomic-result-text>
67
- </atomic-result-fields-list>
85
+ <span>
86
+ <atomic-text value="Date: &nbsp;"></atomic-text>
87
+ <atomic-result-date></atomic-result-date>
88
+ </span><span>
89
+ <atomic-text value="Source: &nbsp;"></atomic-text><atomic-result-text field="sourcetype"></atomic-result-text>
90
+ </span><span> <atomic-text value="Sharepoint: &nbsp;"></atomic-text>
91
+ <atomic-result-link><a slot="attributes" target="_blank"></a>
92
+ <atomic-result-text field="spsitename"></atomic-result-text>
93
+ </atomic-result-link>
94
+ </span>
68
95
  </atomic-result-section-bottom-metadata>
@@ -2,6 +2,7 @@
2
2
  .field {
3
3
  display: inline-flex;
4
4
  align-items: center;
5
+ line-height: normal !important;
5
6
  }
6
7
 
7
8
  .field-label {
@@ -12,7 +13,7 @@
12
13
  atomic-result-section-bottom-metadata {
13
14
  display: grid;
14
15
  grid-template-columns: 1fr 1fr;
15
- font-size: 1.3rem;
16
+ font-size: 1.3rem !important;
16
17
  width: 100%;
17
18
  margin-top: 2px;
18
19
  max-height: 25rem !important;
@@ -30,6 +31,13 @@
30
31
  display: grid;
31
32
  align-items: center;
32
33
  }
34
+ atomic-result-image{
35
+ width: auto !important;
36
+ height: auto !important;
37
+ }
38
+ atomic-result-image img{
39
+ border-radius: 20% !important;
40
+ }
33
41
  </style>
34
42
 
35
43
  <atomic-result-section-visual>
@@ -23,7 +23,7 @@
23
23
 
24
24
  atomic-result-section-excerpt {
25
25
  font-size: 13px;
26
- margin-top: 2px !important;
26
+ margin-top: 0.875rem !important;
27
27
  }
28
28
 
29
29
  atomic-result-section-title a:visited {
@@ -44,6 +44,13 @@
44
44
  display: grid;
45
45
  align-items: center;
46
46
  }
47
+
48
+ atomic-result-section-excerpt {
49
+ font-size: 1.3rem !important;
50
+ margin-top: 0.875rem !important;
51
+ max-height: unset !important;
52
+ line-height: normal !important;
53
+ }
47
54
  </style>
48
55
 
49
56
  <atomic-result-section-visual>
@@ -20,7 +20,7 @@
20
20
  }
21
21
  atomic-result-section-excerpt {
22
22
  font-size: 1.3rem !important;
23
- margin-top:2px !important;
23
+ margin-top:0.875rem !important;
24
24
  max-height: unset !important;
25
25
  line-height: normal !important;
26
26
  }
@@ -41,10 +41,7 @@
41
41
  align-items: center;
42
42
  }
43
43
 
44
- atomic-result-date {
45
- font-size: 13px;
46
- justify-self: end;
47
- }
44
+
48
45
 
49
46
  atomic-result-section-title a {
50
47
  color: #CAA144 !important;
@@ -66,6 +63,9 @@
66
63
  display: flex;
67
64
  align-items: center;
68
65
  }
66
+ atomic-result-date{
67
+ font-size:1.0rem;
68
+ }
69
69
  </style>
70
70
 
71
71
  <atomic-result-section-visual>
@@ -108,7 +108,12 @@
108
108
 
109
109
  <atomic-result-section-title>
110
110
  <div class="title-date">
111
- <atomic-result-link> <a slot="attributes" target="_blank"></a></atomic-result-link>
111
+ <atomic-result-link>
112
+ <a slot="attributes" target="_blank"></a>
113
+ <atomic-result-text field="PrintableUri"></atomic-result-text>
114
+ &nbsp;-&nbsp;
115
+ <atomic-result-text field="title"></atomic-result-text>
116
+ </atomic-result-link>
112
117
  </div>
113
118
  </atomic-result-section-title>
114
119
 
@@ -27,7 +27,11 @@ export class ResultsManager {
27
27
 
28
28
 
29
29
  return (
30
+
30
31
  <atomic-result-list>
32
+ <atomic-result-template must-match-filetype='mp4,wmv,avi,MOV,flv,mkv,webm,ogg,ogv,m4v,gif,jpeg,jpg,png,bmp,Image,mp3,mp4,wmv,avi,MOV,flv,mkv,webm,ogg,ogv,m4v,mpg'>
33
+ <template innerHTML={MediaTemplate}></template>
34
+ </atomic-result-template>
31
35
  <atomic-result-template must-match-abicontenttype="Site Pages">
32
36
  <template innerHTML={SitePagesTemplate}></template>
33
37
  </atomic-result-template>
@@ -16,14 +16,19 @@
16
16
 
17
17
 
18
18
  atomic-result-section-bottom-metadata {
19
+ margin-top: 2px;
19
20
  color: #A6A6A6 !important;
20
- margin-right: 3px;
21
21
  font-size: 1rem !important;
22
+ margin-right: 3px;
22
23
  line-height: 18px !important;
24
+ display: grid;
25
+ grid-template-columns: auto auto auto;
26
+ gap: 1rem;
27
+ align-items: center;
23
28
  }
24
29
 
25
30
  atomic-result-date {
26
- font-size: 13px;
31
+ font-size: 1.0rem;
27
32
  justify-self: end;
28
33
  }
29
34
 
@@ -35,14 +40,15 @@
35
40
  }
36
41
 
37
42
 
38
-
39
- atomic-result-link a:visited {
43
+ atomic-result-section-bottom-metadata a {
44
+ color: #A6A6A6 !important;
45
+ }
46
+ atomic-result-section-title a:visited {
40
47
  color: black !important;
41
48
  }
42
-
43
49
  atomic-result-section-excerpt {
44
50
  font-size: 1.3rem !important;
45
- margin-top: 2px !important;
51
+ margin-top: 0.875rem !important;
46
52
  max-height: unset !important;
47
53
  line-height: normal !important;
48
54
  }
@@ -53,6 +59,18 @@
53
59
  display: grid;
54
60
  align-items: center;
55
61
  }
62
+ atomic-result-section-bottom-metadata span {
63
+ display: flex;
64
+ align-items: center;
65
+ }
66
+
67
+ atomic-field-condition{
68
+ max-width: 100%;
69
+ display: grid;
70
+ grid-template-columns: auto auto auto;
71
+ align-items: center;
72
+ gap: 1rem;
73
+ }
56
74
  </style>
57
75
 
58
76
  <atomic-result-section-visual>
@@ -128,10 +146,17 @@
128
146
  <atomic-result-text field="excerpt"></atomic-result-text>
129
147
  </atomic-result-section-excerpt>
130
148
 
131
- <!-- <atomic-result-section-bottom-metadata>
132
- <atomic-result-fields-list>
133
- <atomic-result-link> <a slot="attributes" target="_blank"></a>
134
- <atomic-result-text field="PrintableUri"></atomic-result-text>
149
+ <atomic-result-section-bottom-metadata>
150
+ <atomic-field-condition must-match-sourcetype="SharePointOnline">
151
+ <span>
152
+ <atomic-text value="Date: &nbsp;"></atomic-text>
153
+ <atomic-result-date></atomic-result-date>
154
+ </span><span>
155
+ <atomic-text value="Source: &nbsp;"></atomic-text><atomic-result-text field="sourcetype"></atomic-result-text>
156
+ </span><span> <atomic-text value="Sharepoint: &nbsp;"></atomic-text>
157
+ <atomic-result-link><a slot="attributes" target="_blank"></a>
158
+ <atomic-result-text field="spsitename"></atomic-result-text>
135
159
  </atomic-result-link>
136
- </atomic-result-fields-list>
137
- </atomic-result-section-bottom-metadata> -->
160
+ </span>
161
+ </atomic-field-condition>
162
+ </atomic-result-section-bottom-metadata>
@@ -66,12 +66,12 @@
66
66
  <atomic-layout-section style="justify-self:center" section="search">
67
67
  <atomic-search-box></atomic-search-box>
68
68
  </atomic-layout-section>
69
- <!-- <atomic-layout-section section="facets">
69
+ <atomic-layout-section section="facets">
70
70
  <atomic-facet-manager>
71
71
  <atomic-facet field="abicontenttype" label="Filetype"></atomic-facet>
72
72
  <atomic-facet field="source" label="Source"></atomic-facet>
73
73
  </atomic-facet-manager>
74
- </atomic-layout-section> -->
74
+ </atomic-layout-section>
75
75
  <atomic-layout-section section="main">
76
76
  <atomic-layout-section section="status">
77
77
  <atomic-breadbox></atomic-breadbox>
@@ -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>
@@ -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: none !important;
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
  }