@coveo/quantic 3.23.0-pre.d7fca8f582 → 3.23.0-pre.ea7abafc70
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/force-app/main/default/lwc/quanticSearchBoxInput/templates/defaultSearchBoxInput.html +1 -1
- package/force-app/main/default/lwc/quanticSearchBoxInput/templates/expandableSearchBoxInput.html +1 -1
- package/force-app/main/default/lwc/quanticSearchBoxSuggestionsList/quanticSearchBoxSuggestionsList.html +65 -36
- package/force-app/main/default/lwc/quanticSearchBoxSuggestionsList/quanticSearchBoxSuggestionsList.js +2 -0
- package/force-app/main/default/lwc/quanticStandaloneSearchBox/templates/standaloneSearchBox.html +1 -1
- package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +8 -8
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/analytics/coveo-analytics-utils.d.ts +1 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/analytics/coveo.analytics/cookie.d.ts +5 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/analytics/coveo.analytics/detector.d.ts +5 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/analytics/coveo.analytics/history-store.d.ts +41 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/analytics/coveo.analytics/storage.d.ts +24 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/analytics/insight-analytics.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/analytics/recommendations-analytics.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/analytics/search-analytics.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/knowledge/stream-answer-api.d.ts +1 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/knowledge/tests/stream-answer-api-state-mock.d.ts +18 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/preprocess-request.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/search/search-api-params.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/navigator-context-provider.d.ts +8 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/ssr-engine/augment-preprocess-request.d.ts +9 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/analytics/analytics-actions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/analytics/analytics-utils.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/configuration/magic-cookie.d.ts +1 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/context/context-selector.d.ts +26 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/category-facet-set/category-facet-set-actions.d.ts +4 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/facet-set/facet-set-actions.d.ts +4 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/range-facets/date-facet-set/date-facet-actions.d.ts +4 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/range-facets/numeric-facet-set/numeric-facet-actions.d.ts +4 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/legacy/search-actions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/legacy/search-request.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/search-actions.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/search-request.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/test/mock-search-request.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/headless.js +10 -10
- package/force-app/main/default/staticresources/coveoheadless/insight/headless.js +9 -9
- package/force-app/main/default/staticresources/coveoheadless/recommendation/headless.js +7 -7
- package/package.json +5 -5
|
@@ -1,37 +1,66 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
2
|
+
<div class={listboxCssClass}>
|
|
3
|
+
<ul
|
|
4
|
+
id="listbox-id"
|
|
5
|
+
data-cy="suggestion-list"
|
|
6
|
+
class="slds-listbox slds-listbox_vertical"
|
|
7
|
+
tabindex="-1"
|
|
8
|
+
role="listbox"
|
|
9
|
+
>
|
|
10
|
+
<template for:each={allOptions} for:item="option">
|
|
11
|
+
<template lwc:if={option.isClearRecentQueryButton}>
|
|
12
|
+
<li
|
|
13
|
+
id={option.id}
|
|
14
|
+
key={option.key}
|
|
15
|
+
onmousedown={option.onClick}
|
|
16
|
+
tabindex="-1"
|
|
17
|
+
data-testid="clear-recent-queries-button"
|
|
18
|
+
role="option"
|
|
19
|
+
class="slds-listbox__item"
|
|
20
|
+
aria-selected={option.isSelected}
|
|
21
|
+
>
|
|
22
|
+
<div class={clearRecentQueriesOptionCSSClass} data-role="option">
|
|
23
|
+
<span class="slds-media__body slds-text-title_bold">
|
|
24
|
+
{labels.recentQueries}
|
|
25
|
+
</span>
|
|
26
|
+
<span class="slds-text-color_weak">{labels.clear}</span>
|
|
27
|
+
</div>
|
|
28
|
+
</li>
|
|
29
|
+
</template>
|
|
30
|
+
<template lwc:else>
|
|
31
|
+
<li
|
|
32
|
+
id={option.id}
|
|
33
|
+
key={option.key}
|
|
34
|
+
onmousedown={option.onClick}
|
|
35
|
+
tabindex="-1"
|
|
36
|
+
data-testid="suggestions-option"
|
|
37
|
+
role="option"
|
|
38
|
+
class="slds-listbox__item"
|
|
39
|
+
data-rawvalue={option.rawValue}
|
|
40
|
+
aria-selected={option.isSelected}
|
|
41
|
+
>
|
|
42
|
+
<div class={option.containerCSSClass}>
|
|
43
|
+
<span
|
|
44
|
+
class="slds-media__figure slds-listbox__option-icon suggestion-option__icon"
|
|
45
|
+
>
|
|
46
|
+
<lightning-icon
|
|
47
|
+
icon-name={option.icon}
|
|
48
|
+
size="xx-small"
|
|
49
|
+
alternative-text={option.iconTitle}
|
|
50
|
+
></lightning-icon>
|
|
51
|
+
</span>
|
|
52
|
+
<span class="slds-media__body slds-grid">
|
|
53
|
+
<lightning-formatted-rich-text
|
|
54
|
+
class="slds-truncate"
|
|
55
|
+
data-cy="suggestions-option-text"
|
|
56
|
+
value={option.value}
|
|
57
|
+
title={option.rawValue}
|
|
58
|
+
></lightning-formatted-rich-text>
|
|
59
|
+
</span>
|
|
60
|
+
</div>
|
|
61
|
+
</li>
|
|
62
|
+
</template>
|
|
63
|
+
</template>
|
|
64
|
+
</ul>
|
|
65
|
+
</div>
|
|
66
|
+
</template>
|
|
@@ -259,6 +259,8 @@ export default class QuanticSearchBoxSuggestionsList extends LightningElement {
|
|
|
259
259
|
iconTitle: suggestion.isRecentQuery
|
|
260
260
|
? this.labels.recentQueryAriaLabel
|
|
261
261
|
: this.labels.querySuggestionAriaLabel,
|
|
262
|
+
isClearRecentQueryButton: false,
|
|
263
|
+
isRecentQuery: !!suggestion.isRecentQuery,
|
|
262
264
|
onClick: (event) => {
|
|
263
265
|
this.handleSelection(event, optionIndex);
|
|
264
266
|
},
|
package/force-app/main/default/lwc/quanticStandaloneSearchBox/templates/standaloneSearchBox.html
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
without-submit-button={withoutSubmitButton}
|
|
14
14
|
placeholder={placeholder}
|
|
15
15
|
suggestions={suggestions}
|
|
16
|
-
data-
|
|
16
|
+
data-testid="quantic-search-box-input"
|
|
17
17
|
></c-quantic-search-box-input>
|
|
18
18
|
</c-quantic-search-interface>
|
|
19
19
|
</template>
|