@coveo/quantic 3.21.0-pre.9022ce2f66 → 3.21.0-pre.d35ebef42a
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/quanticCategoryFacet/quanticCategoryFacet.html +2 -12
- package/force-app/main/default/lwc/quanticCategoryFacet/quanticCategoryFacet.js +1 -3
- package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +8 -8
- 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 +2 -2
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
</template>
|
|
6
6
|
<template lwc:else>
|
|
7
7
|
<template lwc:if={isFacetEnabled}>
|
|
8
|
-
<div data-
|
|
8
|
+
<div data-test="facet-content">
|
|
9
9
|
<template if:true={showPlaceholder}>
|
|
10
10
|
<c-quantic-placeholder
|
|
11
11
|
variant="card"
|
|
@@ -31,11 +31,10 @@
|
|
|
31
31
|
>
|
|
32
32
|
</lightning-button-icon>
|
|
33
33
|
<template if:false={isCollapsed}>
|
|
34
|
-
<ul
|
|
34
|
+
<ul class="slds-has-dividers_around-space slds-m-top_medium">
|
|
35
35
|
<template if:true={withSearch}>
|
|
36
36
|
<div onchange={handleKeyUp} class="slds-size_1-of-1">
|
|
37
37
|
<lightning-input
|
|
38
|
-
data-testid="facet__searchbox-input"
|
|
39
38
|
class="facet__searchbox-input slds-p-horizontal_x-small slds-var-p-bottom_x-small"
|
|
40
39
|
name={labels.search}
|
|
41
40
|
type="search"
|
|
@@ -51,7 +50,6 @@
|
|
|
51
50
|
class="facet__value-option slds-size_1-of-1 slds-p-around_x-small"
|
|
52
51
|
>
|
|
53
52
|
<div
|
|
54
|
-
data-testid="facet__all-categories__button"
|
|
55
53
|
role="button"
|
|
56
54
|
class="facet__allCategories slds-grid slds-size_1-of-1 slds-grid_vertical-align-center"
|
|
57
55
|
tabindex="0"
|
|
@@ -77,7 +75,6 @@
|
|
|
77
75
|
key={v.value}
|
|
78
76
|
>
|
|
79
77
|
<c-quantic-category-facet-value
|
|
80
|
-
data-testid="no-active-parent-facet-value"
|
|
81
78
|
onquantic__selectvalue={onSelectValue}
|
|
82
79
|
item={v}
|
|
83
80
|
non-active-parent="true"
|
|
@@ -90,7 +87,6 @@
|
|
|
90
87
|
class="facet__active-parent slds-grid slds-grid_vertical-align-center slds-p-around_x-small slds-m-left_medium"
|
|
91
88
|
>
|
|
92
89
|
<div
|
|
93
|
-
data-testid="facet__active-parent"
|
|
94
90
|
role="button"
|
|
95
91
|
class="slds-size_1-of-1 slds-grid facet__value-container"
|
|
96
92
|
aria-pressed="true"
|
|
@@ -118,7 +114,6 @@
|
|
|
118
114
|
key={v.value}
|
|
119
115
|
>
|
|
120
116
|
<c-quantic-category-facet-value
|
|
121
|
-
data-testid="facet-value"
|
|
122
117
|
item={v}
|
|
123
118
|
active-parent={activeParent}
|
|
124
119
|
formatting-function={remoteGetValueCaption}
|
|
@@ -135,7 +130,6 @@
|
|
|
135
130
|
<template if:true={hasSearchResults}>
|
|
136
131
|
<template for:each={facetSearchResults} for:item="result">
|
|
137
132
|
<c-quantic-category-facet-value
|
|
138
|
-
data-testid="facet-search-value"
|
|
139
133
|
key={result.index}
|
|
140
134
|
item={result}
|
|
141
135
|
is-search-result="true"
|
|
@@ -149,7 +143,6 @@
|
|
|
149
143
|
<template if:false={hasSearchResults}>
|
|
150
144
|
<li class="slds-grid slds-var-m-top_x-small">
|
|
151
145
|
<span
|
|
152
|
-
data-testid="facet-search__no-match"
|
|
153
146
|
class="slds-truncate slds-var-p-around_small slds-size_1-of-1 facet__search-results_no-match"
|
|
154
147
|
>
|
|
155
148
|
{noMatchesForLabel}
|
|
@@ -159,7 +152,6 @@
|
|
|
159
152
|
<template if:true={canShowMoreSearchResults}>
|
|
160
153
|
<li>
|
|
161
154
|
<span
|
|
162
|
-
data-testid="facet-search__more-matches"
|
|
163
155
|
class="slds-truncate facet__search-results_more-matches"
|
|
164
156
|
>{moreMatchesForLabel}</span
|
|
165
157
|
>
|
|
@@ -173,7 +165,6 @@
|
|
|
173
165
|
>
|
|
174
166
|
<template if:true={canShowLess}>
|
|
175
167
|
<button
|
|
176
|
-
data-testid="facet-values__show-less"
|
|
177
168
|
variant="base"
|
|
178
169
|
class="facet__show-less slds-p-around_none"
|
|
179
170
|
onclick={showLess}
|
|
@@ -187,7 +178,6 @@
|
|
|
187
178
|
</template>
|
|
188
179
|
<template if:true={canShowMore}>
|
|
189
180
|
<button
|
|
190
|
-
data-testid="facet-values__show-more"
|
|
191
181
|
variant="base"
|
|
192
182
|
class="facet__show-more slds-p-around_none"
|
|
193
183
|
onclick={showMore}
|
|
@@ -400,9 +400,7 @@ export default class QuanticCategoryFacet extends LightningElement {
|
|
|
400
400
|
}
|
|
401
401
|
|
|
402
402
|
get canShowLess() {
|
|
403
|
-
return
|
|
404
|
-
this.facet && this.state?.canShowLessValues && !this.isFacetSearchActive
|
|
405
|
-
);
|
|
403
|
+
return this.facet && this.state?.canShowLessValues;
|
|
406
404
|
}
|
|
407
405
|
|
|
408
406
|
get hasParents() {
|