@coveops/abi 0.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.
Files changed (90) hide show
  1. package/.env.example +24 -0
  2. package/README.md +34 -0
  3. package/coveo.deploy.json +30 -0
  4. package/deployment.esbuild.mjs +54 -0
  5. package/dist/abi/abi.css +1 -0
  6. package/dist/abi/abi.esm.js +1 -0
  7. package/dist/abi/index.esm.js +1 -0
  8. package/dist/abi/p-0ae1e588.js +2 -0
  9. package/dist/abi/p-38555fec.js +1 -0
  10. package/dist/abi/p-424e40eb.entry.js +1 -0
  11. package/dist/abi/p-4da5a336.js +18 -0
  12. package/dist/abi/p-941f664c.entry.js +1 -0
  13. package/dist/abi/p-e5564016.entry.js +50 -0
  14. package/dist/bundle/index.css +1 -0
  15. package/dist/bundle/index.html +61 -0
  16. package/dist/bundle/index.js +673 -0
  17. package/dist/cjs/abi.cjs.js +19 -0
  18. package/dist/cjs/atomic-7321a250.js +7 -0
  19. package/dist/cjs/faq-popup-component.cjs.entry.js +106 -0
  20. package/dist/cjs/index-39c8295a.js +1753 -0
  21. package/dist/cjs/index-bea59ea1.js +1093 -0
  22. package/dist/cjs/index.cjs.js +18 -0
  23. package/dist/cjs/loader.cjs.js +21 -0
  24. package/dist/cjs/results-manager.cjs.entry.js +40 -0
  25. package/dist/cjs/sample-component.cjs.entry.js +146 -0
  26. package/dist/collection/collection-manifest.json +19 -0
  27. package/dist/collection/components/faq-popup-component/faq-popup-component.css +15 -0
  28. package/dist/collection/components/faq-popup-component/faq-popup-component.js +78 -0
  29. package/dist/collection/components/results-manager/results-manager.js +45 -0
  30. package/dist/collection/components/sample-component/sample-component.css +10 -0
  31. package/dist/collection/components/sample-component/sample-component.js +102 -0
  32. package/dist/collection/index.js +15 -0
  33. package/dist/collection/utils/atomic.js +3 -0
  34. package/dist/components/index.d.ts +57 -0
  35. package/dist/components/index.js +2999 -0
  36. package/dist/esm/abi.js +17 -0
  37. package/dist/esm/atomic-0e957d02.js +5 -0
  38. package/dist/esm/faq-popup-component.entry.js +102 -0
  39. package/dist/esm/index-51334f26.js +1065 -0
  40. package/dist/esm/index-9483cecb.js +1749 -0
  41. package/dist/esm/index.js +16 -0
  42. package/dist/esm/loader.js +17 -0
  43. package/dist/esm/polyfills/core-js.js +11 -0
  44. package/dist/esm/polyfills/css-shim.js +1 -0
  45. package/dist/esm/polyfills/dom.js +79 -0
  46. package/dist/esm/polyfills/es5-html-element.js +1 -0
  47. package/dist/esm/polyfills/index.js +34 -0
  48. package/dist/esm/polyfills/system.js +6 -0
  49. package/dist/esm/results-manager.entry.js +36 -0
  50. package/dist/esm/sample-component.entry.js +142 -0
  51. package/dist/index.cjs.js +1 -0
  52. package/dist/index.js +1 -0
  53. package/dist/loader/cdn.js +3 -0
  54. package/dist/loader/index.cjs.js +3 -0
  55. package/dist/loader/index.d.ts +12 -0
  56. package/dist/loader/index.es2017.js +3 -0
  57. package/dist/loader/index.js +4 -0
  58. package/dist/loader/package.json +10 -0
  59. package/dist/types/components/faq-popup-component/faq-popup-component.d.ts +10 -0
  60. package/dist/types/components/results-manager/results-manager.d.ts +8 -0
  61. package/dist/types/components/sample-component/sample-component.d.ts +25 -0
  62. package/dist/types/components.d.ts +63 -0
  63. package/dist/types/html.d.ts +4 -0
  64. package/dist/types/index.d.ts +1 -0
  65. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  66. package/dist/types/utils/atomic.d.ts +1 -0
  67. package/package.json +31 -0
  68. package/src/components/faq-popup-component/faq-popup-component.css +15 -0
  69. package/src/components/faq-popup-component/faq-popup-component.tsx +102 -0
  70. package/src/components/results-manager/AppTemplate.html +44 -0
  71. package/src/components/results-manager/DocumentsTemplate.html +37 -0
  72. package/src/components/results-manager/ELearningTemplate.html +81 -0
  73. package/src/components/results-manager/FAQTemplate.html +73 -0
  74. package/src/components/results-manager/KATemplate.html +84 -0
  75. package/src/components/results-manager/MediaTemplate.html +40 -0
  76. package/src/components/results-manager/PeopleTemplate.html +74 -0
  77. package/src/components/results-manager/QuickLinksTemplate.html +51 -0
  78. package/src/components/results-manager/SitePagesTemplate.html +69 -0
  79. package/src/components/results-manager/results-manager.tsx +64 -0
  80. package/src/components/results-manager/template-1.html +67 -0
  81. package/src/components/sample-component/sample-component.css +10 -0
  82. package/src/components/sample-component/sample-component.tsx +157 -0
  83. package/src/components.d.ts +63 -0
  84. package/src/html.d.ts +4 -0
  85. package/src/index.ts +20 -0
  86. package/src/pages/index.html +137 -0
  87. package/src/style/index.css +12 -0
  88. package/src/utils/atomic.ts +3 -0
  89. package/stencil.config.ts +63 -0
  90. package/tsconfig.json +19 -0
@@ -0,0 +1 @@
1
+ export declare function waitForAtomic(): Promise<CustomElementConstructor>;
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@coveops/abi",
3
+ "description": "Abi project",
4
+ "version": "0.1.0",
5
+ "private": false,
6
+ "main": "dist/index.cjs.js",
7
+ "module": "dist/index.js",
8
+ "types": "dist/types/index.d.ts",
9
+ "collection": "dist/collection/collection-manifest.json",
10
+ "collection:main": "dist/index.js",
11
+ "scripts": {
12
+ "start": "stencil build --dev --watch --serve",
13
+ "build": "stencil build && node deployment.esbuild.mjs",
14
+ "deploy": "npm run build && coveo ui:deploy"
15
+ },
16
+ "dependencies": {
17
+ "@coveo/atomic": "2.19.16",
18
+ "@coveo/headless": "2.8.10",
19
+ "@stencil/core": "2.17.3"
20
+ },
21
+ "devDependencies": {
22
+ "@rollup/plugin-replace": "5.0.2",
23
+ "esbuild": "0.17.11",
24
+ "gts": "3.1.1",
25
+ "prettier": "2.8.4",
26
+ "rollup-plugin-dotenv": "0.4.1",
27
+ "rollup-plugin-html": "0.2.1"
28
+ },
29
+ "author": "",
30
+ "license": "ISC"
31
+ }
@@ -0,0 +1,15 @@
1
+ b {
2
+ color: var(--atomic-primary);
3
+ }
4
+ /* :host {
5
+ display: block;
6
+ }
7
+
8
+ .clickable-host {
9
+ cursor: pointer;
10
+ }
11
+
12
+ .clickable-host:hover {
13
+ cursor: pointer;
14
+ text-decoration: underline; /* Optional: adds underline on hover */
15
+ } */
@@ -0,0 +1,102 @@
1
+
2
+ import { Component, h, Element, State, Host } from "@stencil/core";
3
+ import { resultContext, Bindings, initializeBindings } from "@coveo/atomic";
4
+
5
+ import {
6
+ Result
7
+ } from "@coveo/headless";
8
+
9
+ @Component({
10
+ tag: "faq-popup-component",
11
+ styleUrl: "faq-popup-component.css",
12
+ shadow: true,
13
+ })
14
+ export class FaqPopupComponent {
15
+
16
+ private bindings?: Bindings;
17
+ private modalElement?: any;
18
+
19
+ // The Headless result object to be resolved from the parent atomic-result component.
20
+ @State() private result?: Result;
21
+ @Element() private host!: Element;
22
+
23
+ // We recommended fetching the result context using the `connectedCallback` lifecycle method
24
+ // with async/await. Using `componentWillLoad` will hang the parent `atomic-search-interface` initialization.
25
+ public async connectedCallback() {
26
+
27
+ try {
28
+ this.bindings = await initializeBindings(this.host);
29
+ this.result = await resultContext(this.host);
30
+ this.modalElement = this.bindings?.interfaceElement.querySelector('#faq-modal');
31
+ console.log("this.result", this.result, this.modalElement, this.bindings)
32
+ } catch (error) {
33
+ console.error(error);
34
+ this.host.remove();
35
+ }
36
+ }
37
+ private openFAQModal() {
38
+
39
+ this.modalElement.source = this.host;
40
+ this.modalElement.querySelector('[slot=header]').children[0].innerHTML = 'Question: ' + (this.result?.title || '');
41
+ // Get the body slot
42
+ const bodySlot = this.modalElement.querySelector('[slot=body]');
43
+
44
+ // Clear any existing content
45
+ bodySlot.innerHTML = '';
46
+
47
+ const answerElement = document.createElement('div');
48
+ answerElement.style.display = 'flex';
49
+ answerElement.style.gap = '16px';
50
+
51
+ // Create the answer title element and set its text
52
+ const answerTitleElement = document.createElement('div');
53
+ answerTitleElement.innerText = 'Answer:';
54
+ answerElement.appendChild(answerTitleElement);
55
+
56
+ // Get the answer from the result object
57
+ const answerContent = this.result?.raw.answer as string || '';
58
+
59
+ // Create a new element to contain the answer content
60
+ const answerContentElement = document.createElement('div');
61
+ answerContentElement.innerHTML = answerContent;
62
+
63
+ // Append the answer content element to the answer element
64
+ answerElement.appendChild(answerContentElement);
65
+
66
+ // Now, the answer element has the title and the content properly appended
67
+
68
+ bodySlot.appendChild(answerElement);
69
+
70
+
71
+ // Create and append the category element
72
+ const categoryElement = document.createElement('div');
73
+ categoryElement.innerHTML = 'Category: ' + (this.result?.raw.category || '');
74
+ bodySlot.appendChild(categoryElement);
75
+
76
+
77
+
78
+
79
+ const linkElement = document.createElement('div');
80
+ const linkUrl = this.result?.raw.newmoreinfo || '';
81
+ linkElement.innerHTML = `Link: <a href="${linkUrl}" target="_blank">${linkUrl}</a>`;
82
+ bodySlot.appendChild(linkElement);
83
+
84
+ this.modalElement.querySelector('#faq-modal-close').addEventListener('click', this.closeFAQModal);
85
+ this.modalElement.setAttribute('is-open', 'true');
86
+ }
87
+ private closeFAQModal: Function = () => {
88
+ this.modalElement.setAttribute('is-open', 'false');
89
+ this.modalElement.querySelector('#btn-done').removeEventListener('click', this.closeFAQModal);
90
+ }
91
+ public render() {
92
+ if (!this.result) {
93
+ return;
94
+ }
95
+
96
+ return (
97
+ <Host className="clickable-host" onClick={() => this.openFAQModal()}>
98
+ {this.result.title}
99
+ </Host>
100
+ );
101
+ }
102
+ }
@@ -0,0 +1,44 @@
1
+ <style>
2
+ .field {
3
+ display: inline-flex;
4
+ align-items: center;
5
+ }
6
+
7
+ .field-label {
8
+ font-weight: bold;
9
+ margin-right: 0.25rem;
10
+ }
11
+
12
+ .title-date {
13
+ display: grid;
14
+ grid-template-columns: 3fr 1fr;
15
+ }
16
+
17
+ atomic-result-section-title a {
18
+ color: #b11f24 !important;
19
+ font-size: 13px;
20
+ font-weight: 600;
21
+ }
22
+
23
+ atomic-result-section-excerpt {
24
+ font-size: 13px;
25
+ margin-top: 2px !important;
26
+ }
27
+
28
+ atomic-result-link a:visited {
29
+ color: #45130f !important;
30
+ }
31
+ </style>
32
+
33
+ <atomic-result-section-visual>
34
+ <atomic-icon class="icon"></atomic-icon>
35
+ <img src="https://abiglobal--c.vf.force.com/resource/PP_Coveo/img/ProcessPeople.png" class="thumbnail">
36
+ </atomic-result-section-visual>
37
+
38
+ <atomic-result-section-title>
39
+ <atomic-result-link href-template='${raw.sfppcustomlinkcpplinkurlc}'></atomic-result-link>
40
+ </atomic-result-section-title>
41
+ <!-- sfppcustomlinkcpplinkurlc -->
42
+ <atomic-result-section-excerpt>
43
+ <atomic-result-html field="sfppcustomlinkcppdescriptionc"></atomic-result-html>
44
+ </atomic-result-section-excerpt>
@@ -0,0 +1,37 @@
1
+ <style>
2
+ .field {
3
+ display: inline-flex;
4
+ align-items: center;
5
+ }
6
+
7
+ .field-label {
8
+ font-weight: bold;
9
+ margin-right: 0.25rem;
10
+ }
11
+ atomic-result-section-excerpt{
12
+ margin-top:2px !important;
13
+ }
14
+ atomic-result-section-bottom-metadata{
15
+ margin-top: 2px;
16
+ }
17
+ </style>
18
+
19
+ <atomic-result-section-visual>
20
+
21
+ <atomic-icon class="icon"></atomic-icon>
22
+ <img src=" https://abiglobal--c.vf.force.com/resource/PP_Coveo/img/Documents.png" class="thumbnail">
23
+ </atomic-result-section-visual>
24
+
25
+ <atomic-result-section-title>
26
+ <atomic-result-link></atomic-result-link>
27
+ </atomic-result-section-title>
28
+
29
+ <atomic-result-section-excerpt>
30
+ <atomic-result-html field="excerpt"></atomic-result-html>
31
+ </atomic-result-section-excerpt>
32
+
33
+ <atomic-result-section-bottom-metadata>
34
+ <atomic-result-fields-list>
35
+ <atomic-result-link><atomic-result-text field="PrintableUri"></atomic-result-text></atomic-result-link>
36
+ </atomic-result-fields-list>
37
+ </atomic-result-section-bottom-metadata>
@@ -0,0 +1,81 @@
1
+ <style>
2
+ .field {
3
+ display: inline-flex;
4
+ align-items: center;
5
+ }
6
+
7
+ .field-label {
8
+ font-weight: bold;
9
+ margin-right: 0.25rem;
10
+ }
11
+
12
+ atomic-result-section-bottom-metadata {
13
+ color: darkgray !important;
14
+ font-weight: bold;
15
+ margin-right: 3px;
16
+ margin-top: 2px;
17
+ font-size: 14px;
18
+ line-height: 18px !important;
19
+ }
20
+
21
+ atomic-result-section-title a {
22
+ color: #b11f24 !important;
23
+ font-size: 13px;
24
+ font-weight: 600;
25
+ }
26
+
27
+ atomic-result-section-excerpt {
28
+ font-size: 13px;
29
+ margin-top: 2px !important;
30
+ }
31
+
32
+ atomic-result-link a:visited {
33
+ color: #b11f24 !important;
34
+
35
+ }
36
+ </style>
37
+
38
+ <atomic-result-section-visual>
39
+ <atomic-icon class="icon"></atomic-icon>
40
+ <img src="https://abiglobal--c.vf.force.com/resource/PP_Coveo/img/Link.png" class="thumbnail">
41
+ </atomic-result-section-visual>
42
+
43
+ <atomic-result-section-title>
44
+ <atomic-result-link></atomic-result-link>
45
+ </atomic-result-section-title>
46
+
47
+ <atomic-result-section-excerpt>
48
+ <atomic-result-text field="description"></atomic-result-text>
49
+ </atomic-result-section-excerpt>
50
+
51
+ <atomic-result-section-bottom-metadata>
52
+ <atomic-result-fields-list>
53
+ <atomic-field-condition class="field" if-defined="trainingsource">
54
+ <span class="field-label">
55
+ <atomic-text value="Training"></atomic-text>:
56
+ </span>
57
+ <atomic-result-text field="trainingsource"></atomic-result-text>
58
+ </atomic-field-condition>
59
+
60
+ <atomic-field-condition class="field" if-defined="function">
61
+ <span class="field-label">
62
+ <atomic-text value="Function"></atomic-text>:
63
+ </span>
64
+ <atomic-result-text field="function"></atomic-result-text>
65
+ </atomic-field-condition>
66
+
67
+ <atomic-field-condition class="field" if-defined="category">
68
+ <span class="field-label">
69
+ <atomic-text value="Category"></atomic-text>:
70
+ </span>
71
+ <atomic-result-multi-value-text field="category"></atomic-result-multi-value-text>
72
+ </atomic-field-condition>
73
+
74
+ <atomic-field-condition class="field" if-defined="duration">
75
+ <span class="field-label">
76
+ <atomic-text value="Duration"></atomic-text>:
77
+ </span>
78
+ <atomic-result-text field="duration"></atomic-result-text>
79
+ </atomic-field-condition>
80
+ </atomic-result-fields-list>
81
+ </atomic-result-section-bottom-metadata>
@@ -0,0 +1,73 @@
1
+ <style>
2
+ .field {
3
+ display: inline-flex;
4
+ align-items: center;
5
+ }
6
+
7
+ .field-label {
8
+ font-weight: bold;
9
+ margin-right: 0.25rem;
10
+ }
11
+
12
+ atomic-result-section-excerpt {
13
+ font-size: 13px;
14
+ margin-top: 2px !important;
15
+ }
16
+
17
+ atomic-text {
18
+ color: darkgray !important;
19
+ font-weight: bold;
20
+ margin-right: 3px;
21
+ font-size: 14px;
22
+ line-height: 18px !important;
23
+ }
24
+
25
+ atomic-result-link a:visited {
26
+ color: #45130f !important;
27
+
28
+ }
29
+
30
+ atomic-result-section-title a {
31
+ color: #b11f24 !important;
32
+ font-size: 13px;
33
+ font-weight: 600;
34
+ }
35
+
36
+ atomic-result-link a {
37
+ color: #b11f24;
38
+ }
39
+
40
+ atomic-result-section-bottom-metadata {
41
+ margin-top: 2px;
42
+ }
43
+ atomic-result-section-title{
44
+ cursor: pointer;
45
+
46
+ }
47
+
48
+ atomic-result-section-title:hover {
49
+ cursor: pointer;
50
+ text-decoration: underline; /* Optional: adds underline on hover */
51
+ }
52
+
53
+ </style>
54
+
55
+ <atomic-result-section-visual>
56
+ <atomic-icon class="icon"></atomic-icon>
57
+ <img src="https://abiglobal--c.vf.force.com/resource/PP_Coveo/img/FAQ.png" class="thumbnail">
58
+ </atomic-result-section-visual>
59
+
60
+ <atomic-result-section-title>
61
+ <faq-popup-component></faq-popup-component>
62
+ </atomic-result-section-title>
63
+
64
+ <atomic-result-section-excerpt>
65
+ <atomic-result-html field="answer"></atomic-result-html>
66
+ </atomic-result-section-excerpt>
67
+
68
+ <atomic-result-section-bottom-metadata>
69
+ <atomic-result-fields-list>
70
+ <atomic-result-link><atomic-result-text field="PrintableUri"></atomic-result-text></atomic-result-link>
71
+ </atomic-result-fields-list>
72
+
73
+ </atomic-result-section-bottom-metadata>
@@ -0,0 +1,84 @@
1
+ <style>
2
+ .field {
3
+ display: inline-flex;
4
+ align-items: center;
5
+ }
6
+
7
+ .field-label {
8
+ font-weight: bold;
9
+ margin-right: 0.25rem;
10
+ }
11
+
12
+
13
+ atomic-result-section-excerpt {
14
+ font-size: 13px;
15
+ margin-top:2px !important;
16
+ }
17
+ atomic-text {
18
+ color: darkgray !important;
19
+ font-weight: bold;
20
+ margin-right: 3px;
21
+ font-size: 14px;
22
+ line-height: 18px !important;
23
+ }
24
+
25
+ atomic-result-link a:visited {
26
+ color: #45130f !important;
27
+
28
+ }
29
+
30
+ atomic-result-section-bottom-metadata{
31
+ margin-top: 2px;
32
+ }
33
+
34
+ atomic-result-section-title a {
35
+ color: #b11f24 !important;
36
+ font-size: 13px;
37
+ font-weight: 600;
38
+ }
39
+ atomic-result-link a{
40
+ color: #b11f24;
41
+ }
42
+
43
+ </style>
44
+
45
+ <atomic-result-section-visual>
46
+ <atomic-field-condition class="field" must-match-source="ServiceNow - Knowledge">
47
+ <atomic-icon class="icon"></atomic-icon>
48
+ <img src="https://abiglobal--c.vf.force.com/resource/PP_Coveo/img/Default.png" class="thumbnail">
49
+ </atomic-field-condition>
50
+ <atomic-field-condition class="field" must-match-source="Salesforce - Guru UAT">
51
+ <atomic-icon class="icon"></atomic-icon>
52
+ <img src="https://abiglobal--c.vf.force.com/resource/PP_Coveo/img/FAQ.png" class="thumbnail">
53
+ </atomic-field-condition>
54
+ </atomic-result-section-visual>
55
+
56
+
57
+
58
+ <atomic-result-section-title>
59
+ <atomic-result-link></atomic-result-link>
60
+ </atomic-result-section-title>
61
+
62
+ <atomic-result-section-excerpt>
63
+ <atomic-field-condition class="field" must-match-source="ServiceNow - Knowledge">
64
+ <atomic-result-text field="excerpt"></atomic-result-text>
65
+ </atomic-field-condition>
66
+
67
+ <atomic-field-condition class="field" must-match-source="Salesforce - Guru UAT">
68
+ <atomic-result-text field="answer"></atomic-result-text>
69
+
70
+ </atomic-field-condition>
71
+ </atomic-result-section-excerpt>
72
+
73
+ <atomic-result-section-bottom-metadata>
74
+ <atomic-result-fields-list>
75
+ <atomic-field-condition class="field" must-match-source="ServiceNow - Knowledge">
76
+ <atomic-result-link><atomic-result-text field="PrintableUri"></atomic-result-text></atomic-result-link>
77
+ </atomic-field-condition>
78
+
79
+ <atomic-field-condition class="field" must-match-source="Salesforce - Guru UAT">
80
+ <atomic-result-link><atomic-text value="Guru > Articles"></atomic-text></atomic-result-link>
81
+ </atomic-field-condition>
82
+ </atomic-result-fields-list>
83
+
84
+ </atomic-result-section-bottom-metadata>
@@ -0,0 +1,40 @@
1
+ <style>
2
+ .field {
3
+ display: inline-flex;
4
+ align-items: center;
5
+ }
6
+
7
+ .field-label {
8
+ font-weight: bold;
9
+ margin-right: 0.25rem;
10
+ }
11
+ atomic-result-section-excerpt{
12
+ margin-top:2px !important;
13
+ }
14
+ atomic-result-section-bottom-metadata{
15
+ margin-top: 2px;
16
+ }
17
+ </style>
18
+
19
+ <atomic-result-section-visual>
20
+ <atomic-field-condition class="field" must-match-filetype="mp4,wmv,avi,MOV,flv,mkv,webm,ogg,ogv,m4v">
21
+ <atomic-icon class="icon"></atomic-icon>
22
+ <img src="https://abiglobal--c.vf.force.com/resource/PP_Coveo/img/Movies.png" class="thumbnail">
23
+ </atomic-field-condition>
24
+ <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">
25
+ <atomic-icon class="icon"></atomic-icon>
26
+ <img src="https://abiglobal--c.vf.force.com/resource/PP_Coveo/img/Images.png" class="thumbnail">
27
+ </atomic-field-condition>
28
+
29
+ </atomic-result-section-visual>
30
+
31
+ <atomic-result-section-title>
32
+ <atomic-result-link></atomic-result-link>
33
+ </atomic-result-section-title>
34
+
35
+
36
+ <atomic-result-section-bottom-metadata>
37
+ <atomic-result-fields-list>
38
+ <atomic-result-text field="PrintableUri"></atomic-result-text>
39
+ </atomic-result-fields-list>
40
+ </atomic-result-section-bottom-metadata>
@@ -0,0 +1,74 @@
1
+ <style>
2
+ .field {
3
+ display: inline-flex;
4
+ align-items: center;
5
+ }
6
+
7
+ .field-label {
8
+ font-weight: bold;
9
+ margin-right: 0.25rem;
10
+ }
11
+
12
+ atomic-result-section-bottom-metadata{
13
+ display: grid;
14
+ grid-template-columns: 1fr 1fr;
15
+ width: 45%;
16
+ margin-top: 2px;
17
+ }
18
+ atomic-result-section-excerpt{
19
+ margin-top:2px !important;
20
+ }
21
+ atomic-result-section-title a {
22
+ color: #b11f24 !important;
23
+ font-size: 13px;
24
+ font-weight: 600;
25
+ }
26
+
27
+ </style>
28
+
29
+ <atomic-result-section-visual>
30
+ <atomic-result-image field="resultpicture"></atomic-result-image>
31
+ </atomic-result-section-visual>
32
+
33
+ <atomic-result-section-title>
34
+ </atomic-result-section-title>
35
+
36
+ <atomic-result-section-bottom-metadata>
37
+
38
+ <atomic-field-condition class="field" if-defined="sfpppositontitlec">
39
+ <span class="field-label">
40
+ <atomic-text value="Title"></atomic-text>:
41
+ </span>
42
+ <atomic-result-text field="sfpppositontitlec"></atomic-result-text>
43
+ </atomic-field-condition>
44
+ <br>
45
+ <atomic-field-condition class="field" if-defined="sfppzonec">
46
+ <span class="field-label">
47
+ <atomic-text value="Zone"></atomic-text>:
48
+ </span>
49
+ <atomic-result-text field="sfppzonec"></atomic-result-text>
50
+ </atomic-field-condition>
51
+
52
+ <atomic-field-condition class="field" if-defined="sfppemployeeworklocationc">
53
+ <span class="field-label">
54
+ <atomic-text value="OfficeLocation"></atomic-text>:
55
+ </span>
56
+ <atomic-result-text field="sfppemployeeworklocationc"></atomic-result-text>
57
+ </atomic-field-condition>
58
+ <atomic-field-condition class="field" if-defined="sfppbusinessfunctionc">
59
+ <span class="field-label">
60
+ <atomic-text value="Function"></atomic-text>:
61
+ </span>
62
+ <atomic-result-text field="sfppbusinessfunctionc"></atomic-result-text>
63
+ </atomic-field-condition>
64
+
65
+ <atomic-field-condition class="field" if-defined="sfpersonemail">
66
+ <span class="field-label">
67
+ <atomic-text value="Email"></atomic-text>:
68
+ </span>
69
+ <atomic-result-text field="sfpersonemail"></atomic-result-text>
70
+ </atomic-field-condition>
71
+
72
+
73
+
74
+ </atomic-result-section-bottom-metadata>
@@ -0,0 +1,51 @@
1
+ <style>
2
+ .field {
3
+ display: inline-flex;
4
+ align-items: center;
5
+ }
6
+
7
+ .field-label {
8
+ font-weight: bold;
9
+ margin-right: 0.25rem;
10
+ }
11
+ .title-date{
12
+ display: grid;
13
+ grid-template-columns: 3fr 1fr;
14
+ }
15
+ atomic-result-section-title a{
16
+ color: #b11f24 !important;
17
+ font-size: 13px;
18
+ font-weight: 600;
19
+ }
20
+ atomic-result-section-excerpt{
21
+ font-size: 13px;
22
+ margin-top:2px !important;
23
+ }
24
+ atomic-result-link a:visited{
25
+ color: #b11f24 !important;
26
+
27
+ }
28
+
29
+ atomic-result-link a:visited {
30
+ color: #45130f !important;
31
+
32
+ }
33
+ </style>
34
+
35
+ <atomic-result-section-visual>
36
+ <atomic-icon class="icon"></atomic-icon>
37
+ <img src="https://abiglobal--c.vf.force.com/resource/PP_Coveo/img/ProcessPeople.png" class="thumbnail">
38
+ </atomic-result-section-visual>
39
+
40
+ <atomic-result-section-title>
41
+
42
+ <atomic-result-link href-template='${raw.sfppcustomlinkcpplinkurlc}'></atomic-result-link>
43
+
44
+ </div>
45
+ </atomic-result-section-title>
46
+ <!-- sfppcustomlinkcpplinkurlc -->
47
+ <atomic-result-section-excerpt>
48
+ <atomic-result-html field="description"></atomic-result-html>
49
+ </atomic-result-section-excerpt>
50
+
51
+