@coveo/quantic 3.45.7 → 3.45.8

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 (78) hide show
  1. package/docs/out/quantic-docs.json +5 -5
  2. package/force-app/main/default/lwc/quanticBreadcrumbManager/quanticBreadcrumbManager.html +4 -4
  3. package/force-app/main/default/lwc/quanticCarousel/quanticCarousel.html +2 -2
  4. package/force-app/main/default/lwc/quanticCaseClassification/quanticCaseClassification.html +18 -18
  5. package/force-app/main/default/lwc/quanticCaseClassification/quanticCaseClassification.js +3 -3
  6. package/force-app/main/default/lwc/quanticCategoryFacet/quanticCategoryFacet.html +45 -45
  7. package/force-app/main/default/lwc/quanticCategoryFacet/quanticCategoryFacet.js +9 -0
  8. package/force-app/main/default/lwc/quanticCategoryFacetValue/quanticCategoryFacetValue.html +11 -11
  9. package/force-app/main/default/lwc/quanticColoredResultBadge/quanticColoredResultBadge.html +5 -5
  10. package/force-app/main/default/lwc/quanticDateFacet/quanticDateFacet.html +4 -4
  11. package/force-app/main/default/lwc/quanticDateFacet/quanticDateFacet.js +4 -0
  12. package/force-app/main/default/lwc/quanticDidYouMean/templates/didYouMean.html +2 -2
  13. package/force-app/main/default/lwc/quanticDocumentSuggestion/quanticDocumentSuggestion.html +4 -4
  14. package/force-app/main/default/lwc/quanticFacet/quanticFacet.html +43 -43
  15. package/force-app/main/default/lwc/quanticFacet/quanticFacet.js +8 -0
  16. package/force-app/main/default/lwc/quanticFacetValue/quanticFacetValue.html +5 -5
  17. package/force-app/main/default/lwc/quanticFacetValue/quanticFacetValue.js +4 -0
  18. package/force-app/main/default/lwc/quanticFeedbackModal/feedbackForm.html +2 -2
  19. package/force-app/main/default/lwc/quanticFoldedResultList/quanticFoldedResultList.html +1 -1
  20. package/force-app/main/default/lwc/quanticInsightSummary/quanticInsightSummary.html +5 -5
  21. package/force-app/main/default/lwc/quanticInsightSummary/quanticInsightSummary.js +4 -0
  22. package/force-app/main/default/lwc/quanticModal/quanticModal.html +2 -2
  23. package/force-app/main/default/lwc/quanticNoResults/quanticNoResults.html +4 -4
  24. package/force-app/main/default/lwc/quanticNumericFacet/quanticNumericFacet.html +6 -6
  25. package/force-app/main/default/lwc/quanticNumericFacet/quanticNumericFacet.js +4 -0
  26. package/force-app/main/default/lwc/quanticPlaceholder/quanticPlaceholder.html +3 -3
  27. package/force-app/main/default/lwc/quanticQueryError/quanticQueryError.html +6 -6
  28. package/force-app/main/default/lwc/quanticQueryError/quanticQueryError.js +4 -0
  29. package/force-app/main/default/lwc/quanticQuickviewContent/quanticQuickviewDefault.html +1 -1
  30. package/force-app/main/default/lwc/quanticQuickviewContent/quanticQuickviewYoutube.html +1 -1
  31. package/force-app/main/default/lwc/quanticRecentQueriesList/quanticRecentQueriesList.html +4 -4
  32. package/force-app/main/default/lwc/quanticRecentQueriesList/quanticRecentQueriesList.js +8 -0
  33. package/force-app/main/default/lwc/quanticRecentResultsList/quanticRecentResultsList.html +4 -4
  34. package/force-app/main/default/lwc/quanticRecentResultsList/quanticRecentResultsList.js +8 -0
  35. package/force-app/main/default/lwc/quanticRefineModalContent/quanticRefineModalContent.js +4 -0
  36. package/force-app/main/default/lwc/quanticRefineModalContent/templates/disabledDynamicNavigation.html +9 -9
  37. package/force-app/main/default/lwc/quanticRefineModalContent/templates/dynamicNavigation.html +9 -9
  38. package/force-app/main/default/lwc/quanticRefineToggle/quanticRefineToggle.html +2 -2
  39. package/force-app/main/default/lwc/quanticResult/quanticResult.html +1 -1
  40. package/force-app/main/default/lwc/quanticResultAction/quanticResultAction.html +3 -3
  41. package/force-app/main/default/lwc/quanticResultChildren/quanticResultChildren.html +3 -3
  42. package/force-app/main/default/lwc/quanticResultDate/quanticResultDate.html +2 -2
  43. package/force-app/main/default/lwc/quanticResultDate/quanticResultDate.js +1 -1
  44. package/force-app/main/default/lwc/quanticResultField/quanticResultField.js +1 -1
  45. package/force-app/main/default/lwc/quanticResultHighlightedTextField/quanticResultHighlightedTextField.html +3 -3
  46. package/force-app/main/default/lwc/quanticResultLabel/quanticResultLabel.html +3 -3
  47. package/force-app/main/default/lwc/quanticResultLabel/quanticResultLabel.js +4 -0
  48. package/force-app/main/default/lwc/quanticResultList/quanticResultList.html +1 -1
  49. package/force-app/main/default/lwc/quanticResultMultiValueText/quanticResultMultiValueText.html +3 -3
  50. package/force-app/main/default/lwc/quanticResultMultiValueText/quanticResultMultiValueText.js +1 -1
  51. package/force-app/main/default/lwc/quanticResultNumber/quanticResultNumber.html +2 -2
  52. package/force-app/main/default/lwc/quanticResultNumber/quanticResultNumber.js +1 -1
  53. package/force-app/main/default/lwc/quanticResultPrintableUri/quanticResultPrintableUri.html +4 -4
  54. package/force-app/main/default/lwc/quanticResultQuickview/quanticResultQuickview.html +5 -5
  55. package/force-app/main/default/lwc/quanticResultQuickview/quanticResultQuickview.js +2 -2
  56. package/force-app/main/default/lwc/quanticResultTag/quanticResultTag.html +2 -2
  57. package/force-app/main/default/lwc/quanticResultText/quanticResultText.html +3 -3
  58. package/force-app/main/default/lwc/quanticResultText/quanticResultText.js +1 -1
  59. package/force-app/main/default/lwc/quanticResultsPerPage/quanticResultsPerPage.html +1 -1
  60. package/force-app/main/default/lwc/quanticSearchBoxInput/quanticSearchBoxInput.js +6 -2
  61. package/force-app/main/default/lwc/quanticSearchBoxInput/templates/defaultSearchBoxInput.html +4 -4
  62. package/force-app/main/default/lwc/quanticSearchBoxInput/templates/expandableSearchBoxInput.html +4 -4
  63. package/force-app/main/default/lwc/quanticSmartSnippet/quanticSmartSnippet.html +2 -2
  64. package/force-app/main/default/lwc/quanticSmartSnippetSuggestions/quanticSmartSnippetSuggestions.html +1 -1
  65. package/force-app/main/default/lwc/quanticSourceCitations/quanticSourceCitations.html +1 -1
  66. package/force-app/main/default/lwc/quanticStandaloneSearchBox/templates/standaloneSearchBox.html +2 -2
  67. package/force-app/main/default/lwc/quanticSummary/quanticSummary.html +1 -1
  68. package/force-app/main/default/lwc/quanticTimeframeFacet/quanticTimeframeFacet.html +7 -7
  69. package/force-app/main/default/lwc/quanticTimeframeFacet/quanticTimeframeFacet.js +5 -0
  70. package/force-app/main/default/lwc/quanticViewedByCustomerBadge/quanticViewedByCustomerBadge.html +2 -2
  71. package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +16 -16
  72. package/force-app/main/default/staticresources/coveoheadless/definitions/app/logger.d.ts +2 -2
  73. package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/commerce/factories/build-factory.d.ts +1 -1
  74. package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/commerce/types/build.d.ts +2 -2
  75. package/force-app/main/default/staticresources/coveoheadless/headless.js +20 -20
  76. package/force-app/main/default/staticresources/coveoheadless/insight/headless.js +17 -17
  77. package/force-app/main/default/staticresources/coveoheadless/recommendation/headless.js +15 -15
  78. package/package.json +6 -6
@@ -181,6 +181,10 @@ export default class QuanticFacet extends LightningElement {
181
181
  /** @type {boolean} */
182
182
  _isCollapsed = false;
183
183
 
184
+ get isExpanded() {
185
+ return !this.isCollapsed;
186
+ }
187
+
184
188
  static attributes = [
185
189
  'facetId',
186
190
  'field',
@@ -418,6 +422,10 @@ export default class QuanticFacet extends LightningElement {
418
422
  return this.getSearchValues().length > 0;
419
423
  }
420
424
 
425
+ get hasNoSearchResults() {
426
+ return !this.hasSearchResults;
427
+ }
428
+
421
429
  get facetSearchResults() {
422
430
  return this.getSearchValues().map((result) => ({
423
431
  value: result.rawValue,
@@ -10,7 +10,7 @@
10
10
  aria-label={ariaLabelValue}
11
11
  data-testid="facet__value"
12
12
  >
13
- <template if:false={displayAsLink}>
13
+ <template lwc:if={displayAsCheckbox}>
14
14
  <lightning-input
15
15
  tabindex="-1"
16
16
  type="checkbox"
@@ -22,7 +22,7 @@
22
22
  checked={isChecked}
23
23
  ></lightning-input>
24
24
  </template>
25
- <template if:true={isChecked}>
25
+ <template lwc:if={isChecked}>
26
26
  <span
27
27
  class="slds-truncate slds-var-m-right_xx-small slds-var-m-top_xxx-small facet__value-text facet__value_selected"
28
28
  title={formattedFacetValue}
@@ -34,8 +34,8 @@
34
34
  ({numberOfResults})
35
35
  </span>
36
36
  </template>
37
- <template if:false={isChecked}>
38
- <template if:true={isStandardFacet}>
37
+ <template lwc:else>
38
+ <template lwc:if={isStandardFacet}>
39
39
  <span
40
40
  class="slds-truncate slds-var-m-right_xx-small slds-var-m-top_xxx-small facet__value-text facet__value_idle"
41
41
  title={formattedFacetValue}
@@ -43,7 +43,7 @@
43
43
  <lightning-formatted-rich-text value={item.highlightedResult} disable-linkify></lightning-formatted-rich-text>
44
44
  </span>
45
45
  </template>
46
- <template if:false={isStandardFacet}>
46
+ <template lwc:else>
47
47
  <span
48
48
  class="slds-truncate slds-var-m-right_xx-small slds-var-m-top_xxx-small facet__value-text facet__value_idle"
49
49
  title={formattedFacetValue}
@@ -76,6 +76,10 @@ export default class QuanticFacetValue extends LightningElement {
76
76
  inclusionFilter_zero,
77
77
  };
78
78
 
79
+ get displayAsCheckbox() {
80
+ return !this.displayAsLink;
81
+ }
82
+
79
83
  get isStandardFacet() {
80
84
  return !this.isRangeFacet;
81
85
  }
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <template if:true={isValidated}>
2
+ <template lwc:if={isValidated}>
3
3
  <lightning-modal-header label={label}></lightning-modal-header>
4
4
  <lightning-modal-body>
5
5
  <div class="slds-var-p-around_x-large">
@@ -7,7 +7,7 @@
7
7
  options={options} value={feedbackValue} type="radio" onchange={handleFeedbackChange}
8
8
  message-when-value-missing={labels.selectOneOfOptions}></lightning-radio-group>
9
9
  <div class="details-input__container">
10
- <template if:true={shouldDisplayDetailsInput}>
10
+ <template lwc:if={shouldDisplayDetailsInput}>
11
11
  <lightning-textarea required={detailsAreRequired} value={detailsValue} label={labels.provideDetails}
12
12
  message-when-value-missing={labels.fillOutField} onchange={handleDetailsChange}></lightning-textarea>
13
13
  </template>
@@ -4,7 +4,7 @@
4
4
  </c-quantic-component-error>
5
5
  </template>
6
6
  <template lwc:else>
7
- <template if:true={showPlaceholder}>
7
+ <template lwc:if={showPlaceholder}>
8
8
  <c-quantic-placeholder
9
9
  variant="resultList"
10
10
  number-of-rows={numberOfResults}
@@ -4,15 +4,15 @@
4
4
  </c-quantic-component-error>
5
5
  </template>
6
6
  <template lwc:else>
7
- <template if:false={hasError}>
8
- <template if:false={showQuerySummary}>
9
- <div data-testid="initial-summary-message" class="slds-text-title_bold initial-summary-message slds-var-p-vertical_small slds-var-p-horizontal_medium">{labels.insightRelatedToThisCase}</div>
10
- </template>
11
- <template if:true={showQuerySummary}>
7
+ <template lwc:if={hasNoError}>
8
+ <template lwc:if={showQuerySummary}>
12
9
  <div class="slds-var-p-vertical_small slds-var-p-horizontal_medium">
13
10
  <c-quantic-summary engine-id={engineId}></c-quantic-summary>
14
11
  </div>
15
12
  </template>
13
+ <template lwc:else>
14
+ <div data-testid="initial-summary-message" class="slds-text-title_bold initial-summary-message slds-var-p-vertical_small slds-var-p-horizontal_medium">{labels.insightRelatedToThisCase}</div>
15
+ </template>
16
16
  </template>
17
17
  </template>
18
18
  </template>
@@ -70,6 +70,10 @@ export default class QuanticInsightPanelSummary extends LightningElement {
70
70
  this.unsubscribeQuerySummary?.();
71
71
  }
72
72
 
73
+ get hasNoError() {
74
+ return !this.hasError;
75
+ }
76
+
73
77
  /**
74
78
  * Updates summary visibility.
75
79
  * @returns {void}
@@ -1,10 +1,10 @@
1
1
  <template>
2
- <template if:true={renderingError}>
2
+ <template lwc:if={renderingError}>
3
3
  <div class="error-message slds-text-color_destructive">
4
4
  {renderingError}
5
5
  </div>
6
6
  </template>
7
- <template if:false={renderingError}>
7
+ <template lwc:else>
8
8
  <div role="dialog" aria-labelledby="modal-heading" aria-modal="true" aria-describedby="modal-content"
9
9
  class={modalCssClass}>
10
10
  <div tabindex="0" onfocus={focusOnLastElement}></div>
@@ -4,7 +4,7 @@
4
4
  </c-quantic-component-error>
5
5
  </template>
6
6
  <template lwc:else>
7
- <template if:true={showNoResultsPanel}>
7
+ <template lwc:if={showNoResultsPanel}>
8
8
  <div class="slds-grid slds-grid_vertical">
9
9
  <div
10
10
  class="slds-col slds-size_12-of-12 slds-var-m-vertical_x-large slds-illustration slds-illustration_small"
@@ -21,19 +21,19 @@
21
21
  ></lightning-formatted-rich-text>
22
22
  </div>
23
23
  <p class="slds-text-body_small slds-text-align_center">
24
- <template if:true={hasBreadcrumbs}>
24
+ <template lwc:if={hasBreadcrumbs}>
25
25
  <lightning-formatted-rich-text
26
26
  value={labels.noResultsWithFilters}
27
27
  ></lightning-formatted-rich-text>
28
28
  </template>
29
- <template if:false={hasBreadcrumbs}>
29
+ <template lwc:else>
30
30
  <lightning-formatted-rich-text
31
31
  value={labels.noResultsWithoutFilters}
32
32
  ></lightning-formatted-rich-text>
33
33
  </template>
34
34
  </p>
35
35
  </div>
36
- <template if:true={showUndoButton}>
36
+ <template lwc:if={showUndoButton}>
37
37
  <div class="slds-m-vertical_x-large slds-align_absolute-center">
38
38
  <lightning-button
39
39
  variant="brand"
@@ -6,13 +6,13 @@
6
6
  <template lwc:else>
7
7
  <template lwc:if={isFacetEnabled}>
8
8
  <div data-testid="facet-content">
9
- <template if:true={showPlaceholder}>
9
+ <template lwc:if={showPlaceholder}>
10
10
  <c-quantic-placeholder
11
11
  variant="card"
12
12
  number-of-rows={numberOfValues}
13
13
  ></c-quantic-placeholder>
14
14
  </template>
15
- <template if:true={shouldRenderFacet}>
15
+ <template lwc:if={shouldRenderFacet}>
16
16
  <div
17
17
  class="slds-size_1-of-1 slds-var-m-bottom_large"
18
18
  >
@@ -32,7 +32,7 @@
32
32
  aria-hidden="true"
33
33
  >
34
34
  </lightning-button-icon>
35
- <template if:true={hasActiveValues}>
35
+ <template lwc:if={hasActiveValues}>
36
36
  <button
37
37
  data-testid="clear-selection-button"
38
38
  class="facet__clear-filter slds-button slds-grid slds-grid_vertical-align-center slds-var-p-horizontal_x-small slds-m-top_small"
@@ -51,12 +51,12 @@
51
51
  >
52
52
  </button>
53
53
  </template>
54
- <template if:false={isCollapsed}>
54
+ <template lwc:if={isExpanded}>
55
55
  <div
56
56
  data-testid="facet__body"
57
57
  class="slds-has-dividers_around-space slds-var-m-top_medium"
58
58
  >
59
- <template if:true={withInput}>
59
+ <template lwc:if={withInput}>
60
60
  <div class="slds-p-horizontal_x-small">
61
61
  <form
62
62
  data-testid="facet__search-form"
@@ -109,7 +109,7 @@
109
109
  </form>
110
110
  </div>
111
111
  </template>
112
- <template if:true={showValues}>
112
+ <template lwc:if={showValues}>
113
113
  <fieldset>
114
114
  <legend class="slds-assistive-text">{field}</legend>
115
115
  <ul>
@@ -164,6 +164,10 @@ export default class QuanticNumericFacet extends LightningElement {
164
164
  /** @type {boolean} */
165
165
  _isCollapsed = false;
166
166
 
167
+ get isExpanded() {
168
+ return !this.isCollapsed;
169
+ }
170
+
167
171
  static attributes = [
168
172
  'facetId',
169
173
  'field',
@@ -1,7 +1,7 @@
1
1
  <template>
2
- <template if:true={shouldDisplay}>
2
+ <template lwc:if={shouldDisplay}>
3
3
  <div class="slds-p-horizontal_x-small">
4
- <template if:true={isCardVariant}>
4
+ <template lwc:if={isCardVariant}>
5
5
  <div class="placeholder__card-container slds-p-vertical_medium slds-grid_vertical">
6
6
  <div class="slds-col slds-m-bottom_large">
7
7
  <div class="grey placeholder__card-header placeholder__rounded placeholder__animation"></div>
@@ -14,7 +14,7 @@
14
14
  </template>
15
15
  </div>
16
16
  </template>
17
- <template if:true={isResultListVariant}>
17
+ <template lwc:if={isResultListVariant}>
18
18
  <template for:each={rows} for:item="row">
19
19
  <div key={row.index} class="placeholder__result-container slds-grid slds-gutters slds-grid_vertical-align-start">
20
20
  <div class="slds-col slds-m-bottom_large slds-p-horizontal_none">
@@ -4,7 +4,7 @@
4
4
  </c-quantic-component-error>
5
5
  </template>
6
6
  <template lwc:else>
7
- <template if:true={hasError}>
7
+ <template lwc:if={hasError}>
8
8
  <div
9
9
  class="slds-grid slds-grid_align-center slds-gutters slds-grid_vertical"
10
10
  >
@@ -16,7 +16,7 @@
16
16
  </div>
17
17
  <p class="slds-text-align_center">{description}</p>
18
18
  </div>
19
- <template if:true={link}>
19
+ <template lwc:if={link}>
20
20
  <a
21
21
  class="slds-var-m-vertical_x-small slds-align_absolute-center"
22
22
  href={link}
@@ -27,8 +27,8 @@
27
27
  ></lightning-formatted-rich-text>
28
28
  </a>
29
29
  </template>
30
- <template if:false={link}>
31
- <template if:false={showMoreInfo}>
30
+ <template lwc:else>
31
+ <template lwc:if={showMoreInfoButton}>
32
32
  <div class="slds-var-m-vertical_x-large slds-align_absolute-center">
33
33
  <lightning-button
34
34
  variant="brand"
@@ -39,7 +39,7 @@
39
39
  </div>
40
40
  </template>
41
41
  </template>
42
- <template if:true={showMoreInfo}>
42
+ <template lwc:if={showMoreInfo}>
43
43
  <div class="slds-var-m-top_medium">
44
44
  <div
45
45
  class="slds-rich-text-editor slds-grid slds-grid_vertical slds-nowrap"
@@ -92,7 +92,7 @@
92
92
  ></lightning-button>
93
93
  </div>
94
94
  </template>
95
- <template if:false={showMoreInfo}>
95
+ <template lwc:else>
96
96
  <div
97
97
  class="slds-var-m-vertical_xx-large slds-illustration slds-illustration_small"
98
98
  >
@@ -102,6 +102,10 @@ export default class QuanticQueryError extends LightningElement {
102
102
  this.errorAriaMessage.dispatchMessage(this.errorTitle);
103
103
  }
104
104
 
105
+ get showMoreInfoButton() {
106
+ return !this.showMoreInfo;
107
+ }
108
+
105
109
  get errorTitle() {
106
110
  return errorMap[this.type]?.title || genericError.title;
107
111
  }
@@ -5,7 +5,7 @@
5
5
  class="quickview__spinner-container slds-is-relative wrapper"
6
6
  >
7
7
  <lightning-spinner
8
- if:true={isLoading}
8
+ lwc:if={isLoading}
9
9
  alternative-text="Loading"
10
10
  size="large"
11
11
  ></lightning-spinner>
@@ -5,7 +5,7 @@
5
5
  class="quickview__spinner-container slds-is-relative wrapper"
6
6
  >
7
7
  <lightning-spinner
8
- if:true={isLoading}
8
+ lwc:if={isLoading}
9
9
  alternative-text="Loading"
10
10
  size="large"
11
11
  ></lightning-spinner>
@@ -4,18 +4,18 @@
4
4
  </c-quantic-component-error>
5
5
  </template>
6
6
  <template lwc:else>
7
- <template if:true={showPlaceholder}>
7
+ <template lwc:if={showPlaceholder}>
8
8
  <c-quantic-placeholder variant="card" number-of-rows={maxLength}></c-quantic-placeholder>
9
9
  </template>
10
- <template if:false={showPlaceholder}>
10
+ <template lwc:else>
11
11
  <template lwc:if={shouldDisplayRecentQueriesCard}>
12
12
  <c-quantic-card-container title={label} onquantic__headerclick={toggleVisibility} onquantic__headerkeydown={toggleVisibility}>
13
13
  <lightning-button-icon class="slds-p-bottom_small" slot="actions" icon-name={actionButtonIcon}
14
14
  alternative-text={actionButtonLabel} variant="bare" tabindex="-1" aria-hidden="true" data-testid="action-button">
15
15
  </lightning-button-icon>
16
- <template if:false={isCollapsed}>
16
+ <template lwc:if={isExpanded}>
17
17
  <div class="slds-m-top_medium">
18
- <template if:false={hasQueries}>
18
+ <template lwc:if={hasNoQueries}>
19
19
  <div
20
20
  class="slds-text-body_small empty-list-message slds-var-m-vertical_small slds-p-horizontal_x-small">
21
21
  {labels.emptyListLabel}
@@ -71,6 +71,10 @@ export default class QuanticRecentQueriesList extends LightningElement {
71
71
  /** @type {boolean} */
72
72
  _isCollapsed = false;
73
73
 
74
+ get isExpanded() {
75
+ return !this.isCollapsed;
76
+ }
77
+
74
78
  /** @type {RecentQueriesState} */
75
79
  @track state;
76
80
 
@@ -140,6 +144,10 @@ export default class QuanticRecentQueriesList extends LightningElement {
140
144
  return !!this.queries.length;
141
145
  }
142
146
 
147
+ get hasNoQueries() {
148
+ return !this.hasQueries;
149
+ }
150
+
143
151
  get localStorageKey() {
144
152
  return `${this.engineId}_quantic-recent-queries`;
145
153
  }
@@ -4,18 +4,18 @@
4
4
  </c-quantic-component-error>
5
5
  </template>
6
6
  <template lwc:else>
7
- <template if:true={showPlaceholder}>
7
+ <template lwc:if={showPlaceholder}>
8
8
  <c-quantic-placeholder variant="card" number-of-rows={maxLength}></c-quantic-placeholder>
9
9
  </template>
10
- <template if:false={showPlaceholder}>
10
+ <template lwc:else>
11
11
  <template lwc:if={shouldDisplayRecentResultsCard}>
12
12
  <c-quantic-card-container title={label} onquantic__headerclick={toggleVisibility} onquantic__headerkeydown={toggleVisibility}>
13
13
  <lightning-button-icon class="slds-p-bottom_small" slot="actions" icon-name={actionButtonIcon}
14
14
  alternative-text={actionButtonLabel} variant="bare" tabindex="-1" aria-hidden="true" data-testid="action-button">
15
15
  </lightning-button-icon>
16
- <template if:false={isCollapsed}>
16
+ <template lwc:if={isExpanded}>
17
17
  <div class="slds-m-top_medium">
18
- <template if:false={hasResults}>
18
+ <template lwc:if={hasNoResults}>
19
19
  <div class="slds-text-body_small empty-list-message slds-var-m-top_small slds-p-horizontal_x-small">
20
20
  {labels.emptyListLabel}</div>
21
21
  </template>
@@ -83,6 +83,10 @@ export default class QuanticRecentResultsList extends LightningElement {
83
83
  /** @type {boolean} */
84
84
  _isCollapsed = false;
85
85
 
86
+ get isExpanded() {
87
+ return !this.isCollapsed;
88
+ }
89
+
86
90
  /** @type {RecentResultsState} */
87
91
  @track state;
88
92
 
@@ -145,6 +149,10 @@ export default class QuanticRecentResultsList extends LightningElement {
145
149
  return !!this.results.length;
146
150
  }
147
151
 
152
+ get hasNoResults() {
153
+ return !this.hasResults;
154
+ }
155
+
148
156
  get localStorageKey() {
149
157
  return `${this.engineId}_quantic-recent-results`;
150
158
  }
@@ -261,6 +261,10 @@ export default class QuanticRefineModalContent extends LightningElement {
261
261
  'c-quantic-facet': this.toDefaultFacet,
262
262
  };
263
263
 
264
+ get showSort() {
265
+ return !this.hideSort;
266
+ }
267
+
264
268
  /**
265
269
  * Returns facet data.
266
270
  * @returns {Array<object>}
@@ -4,7 +4,7 @@
4
4
  </c-quantic-component-error>
5
5
  </template>
6
6
  <template lwc:else>
7
- <template if:false={hideSort}>
7
+ <template lwc:if={showSort}>
8
8
  <div class="slds-var-m-bottom_large slds-clearfix">
9
9
  <template lwc:if={isSortComponentReady}>
10
10
  <c-quantic-sort engine-id={engineId} variant="wide">
@@ -21,16 +21,16 @@
21
21
  </template>
22
22
  </div>
23
23
  </template>
24
- <template if:true={hasFacets}>
24
+ <template lwc:if={hasFacets}>
25
25
  <div
26
26
  class="slds-align_absolute-center filters-header slds-var-m-bottom_small"
27
27
  >
28
- <template if:true={shouldDisplayFiltersTitle}>
28
+ <template lwc:if={shouldDisplayFiltersTitle}>
29
29
  <div data-testid="filters-title" class="slds-text-heading_small">
30
30
  {labels.filters}
31
31
  </div>
32
32
  </template>
33
- <template if:true={hasActiveFilters}>
33
+ <template lwc:if={hasActiveFilters}>
34
34
  <lightning-button
35
35
  data-testid="clear-active-filters-button"
36
36
  variant="base"
@@ -41,7 +41,7 @@
41
41
  </template>
42
42
  </div>
43
43
  <template for:each={facets} for:item="facet">
44
- <template if:true={facet.isNumeric}>
44
+ <template lwc:if={facet.isNumeric}>
45
45
  <c-quantic-numeric-facet
46
46
  engine-id={engineId}
47
47
  facet-id={facet.facetId}
@@ -57,7 +57,7 @@
57
57
  is-collapsed
58
58
  ></c-quantic-numeric-facet>
59
59
  </template>
60
- <template if:true={facet.isCategory}>
60
+ <template lwc:if={facet.isCategory}>
61
61
  <c-quantic-category-facet
62
62
  engine-id={engineId}
63
63
  facet-id={facet.facetId}
@@ -84,7 +84,7 @@
84
84
  </template>
85
85
  </c-quantic-category-facet>
86
86
  </template>
87
- <template if:true={facet.isTimeframe}>
87
+ <template lwc:if={facet.isTimeframe}>
88
88
  <c-quantic-timeframe-facet
89
89
  engine-id={engineId}
90
90
  facet-id={facet.facetId}
@@ -108,7 +108,7 @@
108
108
  </template>
109
109
  </c-quantic-timeframe-facet>
110
110
  </template>
111
- <template if:true={facet.isDate}>
111
+ <template lwc:if={facet.isDate}>
112
112
  <c-quantic-date-facet
113
113
  engine-id={engineId}
114
114
  facet-id={facet.facetId}
@@ -121,7 +121,7 @@
121
121
  is-collapsed
122
122
  ></c-quantic-date-facet>
123
123
  </template>
124
- <template if:true={facet.isDefault}>
124
+ <template lwc:if={facet.isDefault}>
125
125
  <c-quantic-facet
126
126
  engine-id={engineId}
127
127
  facet-id={facet.facetId}
@@ -4,7 +4,7 @@
4
4
  </c-quantic-component-error>
5
5
  </template>
6
6
  <template lwc:else>
7
- <template if:false={hideSort}>
7
+ <template lwc:if={showSort}>
8
8
  <div class="slds-var-m-bottom_large slds-clearfix">
9
9
  <template lwc:if={isSortComponentReady}>
10
10
  <c-quantic-sort engine-id={engineId} variant="wide">
@@ -21,16 +21,16 @@
21
21
  </template>
22
22
  </div>
23
23
  </template>
24
- <template if:true={hasFacets}>
24
+ <template lwc:if={hasFacets}>
25
25
  <div
26
26
  class="slds-align_absolute-center filters-header slds-var-m-bottom_small"
27
27
  >
28
- <template if:true={shouldDisplayFiltersTitle}>
28
+ <template lwc:if={shouldDisplayFiltersTitle}>
29
29
  <div data-testid="filters-title" class="slds-text-heading_small">
30
30
  {labels.filters}
31
31
  </div>
32
32
  </template>
33
- <template if:true={hasActiveFilters}>
33
+ <template lwc:if={hasActiveFilters}>
34
34
  <lightning-button
35
35
  data-testid="clear-active-filters-button"
36
36
  variant="base"
@@ -42,7 +42,7 @@
42
42
  </div>
43
43
  <c-quantic-facet-manager engine-id={engineId}>
44
44
  <template for:each={facets} for:item="facet">
45
- <template if:true={facet.isNumeric}>
45
+ <template lwc:if={facet.isNumeric}>
46
46
  <c-quantic-numeric-facet
47
47
  engine-id={engineId}
48
48
  facet-id={facet.facetId}
@@ -58,7 +58,7 @@
58
58
  is-collapsed
59
59
  ></c-quantic-numeric-facet>
60
60
  </template>
61
- <template if:true={facet.isCategory}>
61
+ <template lwc:if={facet.isCategory}>
62
62
  <c-quantic-category-facet
63
63
  engine-id={engineId}
64
64
  facet-id={facet.facetId}
@@ -85,7 +85,7 @@
85
85
  </template>
86
86
  </c-quantic-category-facet>
87
87
  </template>
88
- <template if:true={facet.isTimeframe}>
88
+ <template lwc:if={facet.isTimeframe}>
89
89
  <c-quantic-timeframe-facet
90
90
  engine-id={engineId}
91
91
  facet-id={facet.facetId}
@@ -109,7 +109,7 @@
109
109
  </template>
110
110
  </c-quantic-timeframe-facet>
111
111
  </template>
112
- <template if:true={facet.isDate}>
112
+ <template lwc:if={facet.isDate}>
113
113
  <c-quantic-date-facet
114
114
  engine-id={engineId}
115
115
  facet-id={facet.facetId}
@@ -122,7 +122,7 @@
122
122
  is-collapsed
123
123
  ></c-quantic-date-facet>
124
124
  </template>
125
- <template if:true={facet.isDefault}>
125
+ <template lwc:if={facet.isDefault}>
126
126
  <c-quantic-facet
127
127
  engine-id={engineId}
128
128
  facet-id={facet.facetId}
@@ -22,7 +22,7 @@
22
22
  >
23
23
  </lightning-icon>
24
24
  </slot>
25
- <template if:true={activeFiltersCount}>
25
+ <template lwc:if={activeFiltersCount}>
26
26
  <div
27
27
  data-testid="refine-toggle__active-filters-badge"
28
28
  class="refine-button_filters-badge slds-is-absolute slds-align_absolute-center slds-text-title slds-var-p-around_xxx-small"
@@ -55,7 +55,7 @@
55
55
  </div>
56
56
  <div class="slds-align_absolute-center" slot="content">
57
57
  <div class="refine-modal__content">
58
- <template if:true={refineButtonDisabled}>
58
+ <template lwc:if={refineButtonDisabled}>
59
59
  <div
60
60
  class="slds-align_absolute-center slds-text-color_weak refine-modal__empty-message"
61
61
  >
@@ -7,7 +7,7 @@
7
7
  </div>
8
8
  <c-quantic-result-tag variant="featured" result={result}></c-quantic-result-tag>
9
9
  </div>
10
- <template if:true={resultHasPreview}>
10
+ <template lwc:if={resultHasPreview}>
11
11
  <c-quantic-result-quickview slot="actions" engine-id={engineId} result={result}></c-quantic-result-quickview>
12
12
  </template>
13
13
  <p slot="date" class="slds-size_xx-small">
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="slds-is-relative slds-show_inline result-action_container result-action_white-container" onmouseenter={showTooltip} onmouseleave={hideTooltip}>
3
- <template if:true={loading}>
3
+ <template lwc:if={loading}>
4
4
  <button class={loadingClasses} aria-label={displayedLabel}>
5
5
  <div class="slds-spinner_container slds-var-m-around_xx-small">
6
6
  <div role="status" class="slds-spinner slds-spinner_xx-small">
@@ -10,12 +10,12 @@
10
10
  </div>
11
11
  </button>
12
12
  </template>
13
- <template if:false={loading}>
13
+ <template lwc:else>
14
14
  <lightning-button-icon-stateful data-testid="result-action-button" onclick={handleClick} aria-label={displayedLabel} variant="border-filled"
15
15
  class={resultActionOrderClasses} icon-name={displayedIcon} selected={_selected}>
16
16
  </lightning-button-icon-stateful>
17
17
  </template>
18
- <template if:true={displayedLabel}>
18
+ <template lwc:if={displayedLabel}>
19
19
  <c-quantic-tooltip>
20
20
  <div slot="content">{displayedLabel}</div>
21
21
  </c-quantic-tooltip>