@coveo/atomic-react 3.11.34 → 3.11.35
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/README.md +11 -43
- package/dist/cjs/atomic-react.cjs +174 -478
- package/dist/cjs/atomic-react.cjs.map +1 -1
- package/dist/cjs/commerce/atomic-react.cjs +115 -318
- package/dist/cjs/commerce/atomic-react.cjs.map +1 -1
- package/dist/cjs/recommendation/atomic-react.cjs +174 -479
- package/dist/cjs/recommendation/atomic-react.cjs.map +1 -1
- package/dist/esm/atomic-react.mjs +1 -1
- package/dist/esm/atomic-react.mjs.map +1 -1
- package/dist/esm/commerce/atomic-react.mjs +2 -3
- package/dist/esm/commerce/atomic-react.mjs.map +1 -1
- package/dist/esm/recommendation/atomic-react.mjs +1 -2
- package/dist/esm/recommendation/atomic-react.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -501,8 +501,7 @@ const renderButton = ({ props })=>(children)=>{
|
|
|
501
501
|
?disabled=${props.disabled}
|
|
502
502
|
${props.ref ? ref_js.ref(props.ref) : lit.nothing}
|
|
503
503
|
>
|
|
504
|
-
${when_js.when(props.text, ()=>lit.html`<span class="truncate">${props.text}</span>`)}
|
|
505
|
-
${children}
|
|
504
|
+
${when_js.when(props.text, ()=>lit.html`<span class="truncate">${props.text}</span>`)} ${children}
|
|
506
505
|
</button>`;
|
|
507
506
|
};
|
|
508
507
|
|
|
@@ -3565,11 +3564,7 @@ const renderBreadcrumbContent = ({ props })=>{
|
|
|
3565
3564
|
<span part="breadcrumb-value" class=${multiClassMap(valueClass)}>
|
|
3566
3565
|
${props.breadcrumb.content ?? value}
|
|
3567
3566
|
</span>
|
|
3568
|
-
<atomic-icon
|
|
3569
|
-
part="breadcrumb-clear"
|
|
3570
|
-
class="mt-px ml-2 h-2.5 w-2.5"
|
|
3571
|
-
icon=${images_close}
|
|
3572
|
-
>
|
|
3567
|
+
<atomic-icon part="breadcrumb-clear" class="mt-px ml-2 h-2.5 w-2.5" icon=${images_close}>
|
|
3573
3568
|
</atomic-icon>`;
|
|
3574
3569
|
};
|
|
3575
3570
|
|
|
@@ -4080,13 +4075,8 @@ function parseDate(date) {
|
|
|
4080
4075
|
}
|
|
4081
4076
|
|
|
4082
4077
|
const renderFacetContainer = ()=>(children)=>lit.html`
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
part="facet"
|
|
4086
|
-
>
|
|
4087
|
-
${children}
|
|
4088
|
-
</div>
|
|
4089
|
-
`;
|
|
4078
|
+
<div class="bg-background border-neutral rounded-lg border p-4" part="facet">${children}</div>
|
|
4079
|
+
`;
|
|
4090
4080
|
|
|
4091
4081
|
var arrow_bottom_rounded = "<svg viewBox=\"0 0 12.6 7.2\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m11.421 7.04c-.3 0-.5-.1-.7-.3l-4.6-4.6-4.6 4.6c-.4.4-1 .4-1.4 0s-.4-1 0-1.4l5.2-5.2c.4-.4 1.2-.4 1.6 0l5.2 5.2c.4.4.4 1 0 1.4-.2.2-.4.3-.7.3\" transform=\"matrix(-1 0 0 -1 12.366 7.086)\"/></svg>";
|
|
4092
4082
|
|
|
@@ -4325,10 +4315,7 @@ const renderFacetSearchInput = ({ props })=>{
|
|
|
4325
4315
|
inputRef.value?.focus();
|
|
4326
4316
|
}
|
|
4327
4317
|
}
|
|
4328
|
-
})(lit.html`<atomic-icon
|
|
4329
|
-
part="search-clear-button"
|
|
4330
|
-
.icon=${images_close}
|
|
4331
|
-
></atomic-icon>`))}
|
|
4318
|
+
})(lit.html`<atomic-icon part="search-clear-button" .icon=${images_close}></atomic-icon>`))}
|
|
4332
4319
|
</div>
|
|
4333
4320
|
</div>
|
|
4334
4321
|
`;
|
|
@@ -4490,11 +4477,7 @@ const renderCategoryFacetAllCategoryButton = ({ props: { i18n, onClick, facetId,
|
|
|
4490
4477
|
part: 'all-categories-button',
|
|
4491
4478
|
onClick: onClick
|
|
4492
4479
|
}
|
|
4493
|
-
})(lit.html`<atomic-icon
|
|
4494
|
-
aria-hidden="true"
|
|
4495
|
-
icon=${arrow_left_rounded}
|
|
4496
|
-
part="back-arrow"
|
|
4497
|
-
></atomic-icon>
|
|
4480
|
+
})(lit.html`<atomic-icon aria-hidden="true" icon=${arrow_left_rounded} part="back-arrow"></atomic-icon>
|
|
4498
4481
|
<span class="truncate">${allCategories}</span>`)}
|
|
4499
4482
|
`;
|
|
4500
4483
|
};
|
|
@@ -4528,11 +4511,7 @@ const renderCategoryFacetParentButton = ({ props })=>{
|
|
|
4528
4511
|
ariaLabel: ariaLabel
|
|
4529
4512
|
}
|
|
4530
4513
|
})(lit.html`
|
|
4531
|
-
<atomic-icon
|
|
4532
|
-
icon=${arrow_left_rounded}
|
|
4533
|
-
part="back-arrow"
|
|
4534
|
-
class="back-arrow"
|
|
4535
|
-
></atomic-icon>
|
|
4514
|
+
<atomic-icon icon=${arrow_left_rounded} part="back-arrow" class="back-arrow"></atomic-icon>
|
|
4536
4515
|
<span class="truncate">${displayValue}</span>
|
|
4537
4516
|
`);
|
|
4538
4517
|
};
|
|
@@ -4633,9 +4612,7 @@ class HierarchicalPathDirective extends directive_js.Directive {
|
|
|
4633
4612
|
const ellipsedPath = this.getEllipsedPath(path, maxLength, ellipsis);
|
|
4634
4613
|
return ellipsedPath.map((value, index)=>lit.html`
|
|
4635
4614
|
${index > 0 ? lit.html`<span class=${separatorClass}>${separator}</span>` : ''}
|
|
4636
|
-
<span class=${value === ellipsis ? ellipsisClass : itemClass}>
|
|
4637
|
-
${value}
|
|
4638
|
-
</span>
|
|
4615
|
+
<span class=${value === ellipsis ? ellipsisClass : itemClass}> ${value} </span>
|
|
4639
4616
|
`);
|
|
4640
4617
|
}
|
|
4641
4618
|
getEllipsedPath(path, maxLength, ellipsis) {
|
|
@@ -4708,9 +4685,7 @@ const renderCategoryFacetSearchValue = ({ props })=>{
|
|
|
4708
4685
|
path: localizedPath,
|
|
4709
4686
|
separator: SEPARATOR,
|
|
4710
4687
|
maxLength: PATH_MAX_LENGTH,
|
|
4711
|
-
emptyPathContent: lit.html`<span class="truncate">
|
|
4712
|
-
${inLabel} ${allCategories}
|
|
4713
|
-
</span>`,
|
|
4688
|
+
emptyPathContent: lit.html`<span class="truncate"> ${inLabel} ${allCategories} </span>`,
|
|
4714
4689
|
separatorClass: 'mx-0.5',
|
|
4715
4690
|
itemClass: 'max-w-max flex-1 truncate',
|
|
4716
4691
|
ellipsisClass: ''
|
|
@@ -5131,11 +5106,7 @@ class AtomicFacetPlaceholder extends lit.LitElement {
|
|
|
5131
5106
|
class="bg-background border-neutral mb-4 animate-pulse rounded-lg border p-7"
|
|
5132
5107
|
aria-hidden="true"
|
|
5133
5108
|
>
|
|
5134
|
-
<div
|
|
5135
|
-
part="title-skeleton"
|
|
5136
|
-
class="bg-neutral h-8 rounded"
|
|
5137
|
-
style="width: 75%;"
|
|
5138
|
-
></div>
|
|
5109
|
+
<div part="title-skeleton" class="bg-neutral h-8 rounded" style="width: 75%;"></div>
|
|
5139
5110
|
<div part="values-container" class="mt-7">
|
|
5140
5111
|
${map_js.map(Array.from({
|
|
5141
5112
|
length: this.valueCount
|
|
@@ -5453,11 +5424,7 @@ class AtomicFacetDateInput extends LightDomMixin(lit.LitElement) {
|
|
|
5453
5424
|
return false;
|
|
5454
5425
|
}}
|
|
5455
5426
|
>
|
|
5456
|
-
<label
|
|
5457
|
-
part="input-label"
|
|
5458
|
-
class=${labelClasses}
|
|
5459
|
-
for=${`${this.facetId}_start`}
|
|
5460
|
-
>
|
|
5427
|
+
<label part="input-label" class=${labelClasses} for=${`${this.facetId}_start`}>
|
|
5461
5428
|
${startLabel}:
|
|
5462
5429
|
</label>
|
|
5463
5430
|
<input
|
|
@@ -5477,11 +5444,7 @@ class AtomicFacetDateInput extends LightDomMixin(lit.LitElement) {
|
|
|
5477
5444
|
this.start = parseDate(e.target.value).toDate();
|
|
5478
5445
|
}}
|
|
5479
5446
|
/>
|
|
5480
|
-
<label
|
|
5481
|
-
part="input-label"
|
|
5482
|
-
class=${labelClasses}
|
|
5483
|
-
for=${`${this.facetId}_end`}
|
|
5484
|
-
>
|
|
5447
|
+
<label part="input-label" class=${labelClasses} for=${`${this.facetId}_end`}>
|
|
5485
5448
|
${endLabel}:
|
|
5486
5449
|
</label>
|
|
5487
5450
|
<input
|
|
@@ -7918,7 +7881,7 @@ function getWindow$1() {
|
|
|
7918
7881
|
}
|
|
7919
7882
|
function getAtomicEnvironment(headlessVersion) {
|
|
7920
7883
|
return {
|
|
7921
|
-
version: "3.60.
|
|
7884
|
+
version: "3.60.3",
|
|
7922
7885
|
headlessVersion
|
|
7923
7886
|
};
|
|
7924
7887
|
}
|
|
@@ -9045,9 +9008,7 @@ const renderLoadMoreButton = ({ props })=>{
|
|
|
9045
9008
|
})(lit.html`${i18n.t(label)}`);
|
|
9046
9009
|
};
|
|
9047
9010
|
|
|
9048
|
-
const renderLoadMoreContainer = ()=>(children)=>lit.html`
|
|
9049
|
-
<div class="flex flex-col items-center" part="container">${children}</div>
|
|
9050
|
-
`;
|
|
9011
|
+
const renderLoadMoreContainer = ()=>(children)=>lit.html` <div class="flex flex-col items-center" part="container">${children}</div> `;
|
|
9051
9012
|
|
|
9052
9013
|
const renderLoadMoreProgressBar = ({ props })=>{
|
|
9053
9014
|
const { from, to } = props;
|
|
@@ -9077,18 +9038,14 @@ const renderLoadMoreSummary = ({ props })=>{
|
|
|
9077
9038
|
total: wrapHighlight(to.toLocaleString(locale))
|
|
9078
9039
|
});
|
|
9079
9040
|
return lit.html`
|
|
9080
|
-
<div class="text-neutral-dark my-2 text-lg" part="showing-results">
|
|
9081
|
-
${unsafeHtml_js.unsafeHTML(content)}
|
|
9082
|
-
</div>
|
|
9041
|
+
<div class="text-neutral-dark my-2 text-lg" part="showing-results">${unsafeHtml_js.unsafeHTML(content)}</div>
|
|
9083
9042
|
`;
|
|
9084
9043
|
};
|
|
9085
9044
|
|
|
9086
9045
|
const renderNoItemsContainer = ()=>(children)=>lit.html`
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
-
<slot></slot>
|
|
9091
|
-
`;
|
|
9046
|
+
<div class="text-on-background flex h-full w-full flex-col items-center">${children}</div>
|
|
9047
|
+
<slot></slot>
|
|
9048
|
+
`;
|
|
9092
9049
|
|
|
9093
9050
|
class NoItemsGuardDirective extends directive_js.Directive {
|
|
9094
9051
|
render({ firstSearchExecuted, isLoading, hasResults }, content) {
|
|
@@ -9128,12 +9085,7 @@ const renderNoItems = ({ props })=>{
|
|
|
9128
9085
|
}
|
|
9129
9086
|
}) : props.i18n.t(props.i18nKey);
|
|
9130
9087
|
return lit.html`
|
|
9131
|
-
<div
|
|
9132
|
-
class="my-2 max-w-full text-center text-2xl font-medium"
|
|
9133
|
-
part="no-results"
|
|
9134
|
-
>
|
|
9135
|
-
${content}
|
|
9136
|
-
</div>
|
|
9088
|
+
<div class="my-2 max-w-full text-center text-2xl font-medium" part="no-results">${content}</div>
|
|
9137
9089
|
`;
|
|
9138
9090
|
};
|
|
9139
9091
|
|
|
@@ -10102,10 +10054,7 @@ class AtomicResultPlaceholder extends lit.LitElement {
|
|
|
10102
10054
|
renderExcerptLine(width) {
|
|
10103
10055
|
return lit.html`
|
|
10104
10056
|
<div style="height: var(--line-height); width: ${width};">
|
|
10105
|
-
<div
|
|
10106
|
-
class=${placeholderClasses}
|
|
10107
|
-
style="height: var(--font-size);"
|
|
10108
|
-
></div>
|
|
10057
|
+
<div class=${placeholderClasses} style="height: var(--font-size);"></div>
|
|
10109
10058
|
</div>
|
|
10110
10059
|
`;
|
|
10111
10060
|
}
|
|
@@ -10139,11 +10088,7 @@ class AtomicResultPlaceholder extends lit.LitElement {
|
|
|
10139
10088
|
<div class="fields-placeholder">
|
|
10140
10089
|
${Array.from({
|
|
10141
10090
|
length: 4
|
|
10142
|
-
}, ()=>lit.html`
|
|
10143
|
-
<div
|
|
10144
|
-
class="field-value-placeholder ${placeholderClasses}"
|
|
10145
|
-
></div>
|
|
10146
|
-
`)}
|
|
10091
|
+
}, ()=>lit.html` <div class="field-value-placeholder ${placeholderClasses}"></div> `)}
|
|
10147
10092
|
</div>
|
|
10148
10093
|
</atomic-result-section-bottom-metadata>
|
|
10149
10094
|
</div>
|
|
@@ -10194,22 +10139,13 @@ class AtomicResultTablePlaceholder extends lit.LitElement {
|
|
|
10194
10139
|
<thead aria-hidden="true">
|
|
10195
10140
|
<tr>
|
|
10196
10141
|
<th>
|
|
10197
|
-
<div
|
|
10198
|
-
class="mt-2 h-8 block bg-neutral rounded"
|
|
10199
|
-
style="width: 14.5rem;"
|
|
10200
|
-
></div>
|
|
10142
|
+
<div class="mt-2 h-8 block bg-neutral rounded" style="width: 14.5rem;"></div>
|
|
10201
10143
|
</th>
|
|
10202
10144
|
<th>
|
|
10203
|
-
<div
|
|
10204
|
-
class="mt-2 h-8 block bg-neutral rounded"
|
|
10205
|
-
style="width: 9.75rem;"
|
|
10206
|
-
></div>
|
|
10145
|
+
<div class="mt-2 h-8 block bg-neutral rounded" style="width: 9.75rem;"></div>
|
|
10207
10146
|
</th>
|
|
10208
10147
|
<th>
|
|
10209
|
-
<div
|
|
10210
|
-
class="mt-2 h-8 block bg-neutral rounded"
|
|
10211
|
-
style="width: 6.5rem;"
|
|
10212
|
-
></div>
|
|
10148
|
+
<div class="mt-2 h-8 block bg-neutral rounded" style="width: 6.5rem;"></div>
|
|
10213
10149
|
</th>
|
|
10214
10150
|
</tr>
|
|
10215
10151
|
</thead>
|
|
@@ -10219,30 +10155,15 @@ class AtomicResultTablePlaceholder extends lit.LitElement {
|
|
|
10219
10155
|
}), ()=>lit.html`
|
|
10220
10156
|
<tr>
|
|
10221
10157
|
<td>
|
|
10222
|
-
<div
|
|
10223
|
-
|
|
10224
|
-
|
|
10225
|
-
></div>
|
|
10226
|
-
<div
|
|
10227
|
-
class="mb-2 h-5 block bg-neutral rounded"
|
|
10228
|
-
style="width: 23.75rem;"
|
|
10229
|
-
></div>
|
|
10230
|
-
<div
|
|
10231
|
-
class="h-5 block bg-neutral rounded"
|
|
10232
|
-
style="width: 11.5rem;"
|
|
10233
|
-
></div>
|
|
10158
|
+
<div class="mb-6 h-8 block bg-neutral rounded" style="width: 22.875rem;"></div>
|
|
10159
|
+
<div class="mb-2 h-5 block bg-neutral rounded" style="width: 23.75rem;"></div>
|
|
10160
|
+
<div class="h-5 block bg-neutral rounded" style="width: 11.5rem;"></div>
|
|
10234
10161
|
</td>
|
|
10235
10162
|
<td>
|
|
10236
|
-
<div
|
|
10237
|
-
class="mt-1.5 h-5 block bg-neutral rounded"
|
|
10238
|
-
style="width: 11rem;"
|
|
10239
|
-
></div>
|
|
10163
|
+
<div class="mt-1.5 h-5 block bg-neutral rounded" style="width: 11rem;"></div>
|
|
10240
10164
|
</td>
|
|
10241
10165
|
<td>
|
|
10242
|
-
<div
|
|
10243
|
-
class="mt-1.5 h-5 block bg-neutral rounded"
|
|
10244
|
-
style="width: 4.875rem;"
|
|
10245
|
-
></div>
|
|
10166
|
+
<div class="mt-1.5 h-5 block bg-neutral rounded" style="width: 4.875rem;"></div>
|
|
10246
10167
|
</td>
|
|
10247
10168
|
</tr>
|
|
10248
10169
|
`)}
|
|
@@ -10322,9 +10243,7 @@ const renderListWrapper = ({ props })=>{
|
|
|
10322
10243
|
};
|
|
10323
10244
|
const renderListRoot = ({ props })=>{
|
|
10324
10245
|
const { listClasses } = props;
|
|
10325
|
-
return (children)=>lit.html`<div class="list-root ${listClasses}" part="result-list"
|
|
10326
|
-
${children}
|
|
10327
|
-
</div>`;
|
|
10246
|
+
return (children)=>lit.html`<div class="list-root ${listClasses}" part="result-list">${children}</div>`;
|
|
10328
10247
|
};
|
|
10329
10248
|
|
|
10330
10249
|
const renderGridLayout = ({ props })=>{
|
|
@@ -10442,17 +10361,11 @@ const renderTableLayout = ({ props })=>{
|
|
|
10442
10361
|
const { host, listClasses, logger, label } = props;
|
|
10443
10362
|
const fieldColumns = getFieldTableColumns(props);
|
|
10444
10363
|
if (!fieldColumns.length) logger.error('atomic-table-element elements missing in the template to display columns.', host);
|
|
10445
|
-
return (children)=>lit.html`<table
|
|
10446
|
-
class="list-root ${listClasses}"
|
|
10447
|
-
part="result-table"
|
|
10448
|
-
aria-label=${label}
|
|
10449
|
-
>
|
|
10364
|
+
return (children)=>lit.html`<table class="list-root ${listClasses}" part="result-table" aria-label=${label}>
|
|
10450
10365
|
<thead part="result-table-heading">
|
|
10451
10366
|
<tr part="result-table-heading-row">
|
|
10452
10367
|
${map_js.map(fieldColumns, (column)=>lit.html`<th part="result-table-heading-cell">
|
|
10453
|
-
<atomic-text
|
|
10454
|
-
.value=${column.getAttribute('label')}
|
|
10455
|
-
></atomic-text>
|
|
10368
|
+
<atomic-text .value=${column.getAttribute('label')}></atomic-text>
|
|
10456
10369
|
</th>`)}
|
|
10457
10370
|
</tr>
|
|
10458
10371
|
</thead>
|
|
@@ -10586,12 +10499,7 @@ const renderChoices = ({ props })=>{
|
|
|
10586
10499
|
else if (choice > pageSize) focusOnNextNewResult();
|
|
10587
10500
|
};
|
|
10588
10501
|
return lit.html`
|
|
10589
|
-
<div
|
|
10590
|
-
part="buttons"
|
|
10591
|
-
role="radiogroup"
|
|
10592
|
-
aria-label=${label}
|
|
10593
|
-
class="flex flex-wrap gap-2"
|
|
10594
|
-
>
|
|
10502
|
+
<div part="buttons" role="radiogroup" aria-label=${label} class="flex flex-wrap gap-2">
|
|
10595
10503
|
${choices.map((choice)=>{
|
|
10596
10504
|
const isSelected = pageSize === choice;
|
|
10597
10505
|
const parts = [
|
|
@@ -10622,14 +10530,14 @@ const renderChoices = ({ props })=>{
|
|
|
10622
10530
|
};
|
|
10623
10531
|
|
|
10624
10532
|
const renderLabel = ()=>(children)=>lit.html`
|
|
10625
|
-
|
|
10626
|
-
|
|
10627
|
-
|
|
10628
|
-
|
|
10629
|
-
|
|
10630
|
-
|
|
10631
|
-
|
|
10632
|
-
|
|
10533
|
+
<span
|
|
10534
|
+
part="label"
|
|
10535
|
+
class="text-on-background mr-3 self-start text-lg leading-10"
|
|
10536
|
+
aria-hidden="true"
|
|
10537
|
+
>
|
|
10538
|
+
${children}
|
|
10539
|
+
</span>
|
|
10540
|
+
`;
|
|
10633
10541
|
|
|
10634
10542
|
class ChoiceIsNaNError extends Error {
|
|
10635
10543
|
constructor(choice){
|
|
@@ -10768,11 +10676,7 @@ const renderQueryErrorLink = ({ props })=>{
|
|
|
10768
10676
|
}
|
|
10769
10677
|
};
|
|
10770
10678
|
const link = getErrorLink();
|
|
10771
|
-
return link ? lit.html`<a
|
|
10772
|
-
href=${link}
|
|
10773
|
-
part="doc-link"
|
|
10774
|
-
class="btn-primary mt-10 inline-block p-3"
|
|
10775
|
-
>
|
|
10679
|
+
return link ? lit.html`<a href=${link} part="doc-link" class="btn-primary mt-10 inline-block p-3">
|
|
10776
10680
|
${props.i18n.t('coveo-online-help')}
|
|
10777
10681
|
</a>` : lit.nothing;
|
|
10778
10682
|
};
|
|
@@ -10806,9 +10710,7 @@ const renderQuerySummaryContainer = ({ props })=>(children)=>{
|
|
|
10806
10710
|
'text-on-background': true,
|
|
10807
10711
|
[props.additionalClasses ?? '']: Boolean(props.additionalClasses)
|
|
10808
10712
|
};
|
|
10809
|
-
return lit.html`
|
|
10810
|
-
<div class=${multiClassMap(classNames)} part="container">${children}</div>
|
|
10811
|
-
`;
|
|
10713
|
+
return lit.html` <div class=${multiClassMap(classNames)} part="container">${children}</div> `;
|
|
10812
10714
|
};
|
|
10813
10715
|
|
|
10814
10716
|
const renderQuerySummaryGuard = ({ props })=>(children)=>{
|
|
@@ -10943,9 +10845,7 @@ const renderCarousel = ({ props })=>(children)=>{
|
|
|
10943
10845
|
${renderPreviousButton(numberOfPages, previousPage, props.bindings)}
|
|
10944
10846
|
${renderNextButton(numberOfPages, nextPage, props.bindings)}
|
|
10945
10847
|
</div>
|
|
10946
|
-
<div class="carousel-items" aria-live="polite" aria-atomic="false">
|
|
10947
|
-
${children}
|
|
10948
|
-
</div>
|
|
10848
|
+
<div class="carousel-items" aria-live="polite" aria-atomic="false">${children}</div>
|
|
10949
10849
|
</div>
|
|
10950
10850
|
${renderIndicators(numberOfPages, currentPage)}
|
|
10951
10851
|
</div>
|
|
@@ -10965,10 +10865,7 @@ const renderRefineModalBody = (i18n)=>(children)=>lit.html`
|
|
|
10965
10865
|
|
|
10966
10866
|
const renderRefineModalFiltersSection = ({ props })=>(children)=>lit.html`
|
|
10967
10867
|
<div part="filter-section" class="mt-8 mb-3 flex w-full justify-between">
|
|
10968
|
-
<h2
|
|
10969
|
-
part="section-title section-filters-title"
|
|
10970
|
-
class="truncate text-2xl font-bold"
|
|
10971
|
-
>
|
|
10868
|
+
<h2 part="section-title section-filters-title" class="truncate text-2xl font-bold">
|
|
10972
10869
|
${props.i18n.t('filters')}
|
|
10973
10870
|
</h2>
|
|
10974
10871
|
${children}
|
|
@@ -11286,11 +11183,7 @@ const renderRefineModal = ({ props })=>(children)=>{
|
|
|
11286
11183
|
onClick: props.onClose,
|
|
11287
11184
|
ariaLabel: props.i18n.t('close')
|
|
11288
11185
|
}
|
|
11289
|
-
})(lit.html`<atomic-icon
|
|
11290
|
-
part="close-icon"
|
|
11291
|
-
class="h-5 w-5"
|
|
11292
|
-
icon=${images_close}
|
|
11293
|
-
></atomic-icon>`)}
|
|
11186
|
+
})(lit.html`<atomic-icon part="close-icon" class="h-5 w-5" icon=${images_close}></atomic-icon>`)}
|
|
11294
11187
|
</div>
|
|
11295
11188
|
`;
|
|
11296
11189
|
const renderFooter = ()=>lit.html`
|
|
@@ -11340,10 +11233,7 @@ const renderRefineModal = ({ props })=>(children)=>{
|
|
|
11340
11233
|
var sort = "<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M7.5 6L7.5 17\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M11 14L7.5 18L4 14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16.5 18L16.5 6\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M13 10L16.5 6L20 10\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>";
|
|
11341
11234
|
|
|
11342
11235
|
const renderRefineModalSortSection = ({ props })=>(children)=>lit.html`
|
|
11343
|
-
<h2
|
|
11344
|
-
part="section-title section-sort-title"
|
|
11345
|
-
class="mb-3 truncate text-2xl font-bold"
|
|
11346
|
-
>
|
|
11236
|
+
<h2 part="section-title section-sort-title" class="mb-3 truncate text-2xl font-bold">
|
|
11347
11237
|
${props.i18n.t('sort')}
|
|
11348
11238
|
</h2>
|
|
11349
11239
|
<div part="select-wrapper" class="relative">
|
|
@@ -11359,18 +11249,12 @@ const renderRefineModalSortSection = ({ props })=>(children)=>lit.html`
|
|
|
11359
11249
|
part="select-icon-wrapper"
|
|
11360
11250
|
class="peer-hover:text-primary-light peer-focus-within:text-primary-light pointer-events-none absolute top-0 right-0 bottom-0 flex items-center justify-center pr-6"
|
|
11361
11251
|
>
|
|
11362
|
-
<atomic-icon
|
|
11363
|
-
part="select-icon"
|
|
11364
|
-
icon=${sort}
|
|
11365
|
-
class="h-6 w-6"
|
|
11366
|
-
></atomic-icon>
|
|
11252
|
+
<atomic-icon part="select-icon" icon=${sort} class="h-6 w-6"></atomic-icon>
|
|
11367
11253
|
</div>
|
|
11368
11254
|
</div>
|
|
11369
11255
|
`;
|
|
11370
11256
|
|
|
11371
|
-
const renderSortOption = ({ props: { value, selected, i18n, label } })=>lit.html`
|
|
11372
|
-
<option value=${value} ?selected=${selected}>${i18n.t(label)}</option>
|
|
11373
|
-
`;
|
|
11257
|
+
const renderSortOption = ({ props: { value, selected, i18n, label } })=>lit.html` <option value=${value} ?selected=${selected}>${i18n.t(label)}</option> `;
|
|
11374
11258
|
|
|
11375
11259
|
const renderRefineToggleButton = ({ props })=>lit.html`${renderButton({
|
|
11376
11260
|
props: {
|
|
@@ -11412,11 +11296,7 @@ const renderSearchBoxWrapper = ({ props })=>(children)=>{
|
|
|
11412
11296
|
'focus-within:border-disabled focus-within:ring-neutral': props.disabled,
|
|
11413
11297
|
'focus-within:border-primary focus-within:ring-ring-primary': !props.disabled
|
|
11414
11298
|
});
|
|
11415
|
-
return lit.html`<div
|
|
11416
|
-
part="wrapper"
|
|
11417
|
-
class=${multiClassMap(classes)}
|
|
11418
|
-
@focusout=${props.onFocusout}
|
|
11419
|
-
>
|
|
11299
|
+
return lit.html`<div part="wrapper" class=${multiClassMap(classes)} @focusout=${props.onFocusout}>
|
|
11420
11300
|
${children}
|
|
11421
11301
|
</div>`;
|
|
11422
11302
|
};
|
|
@@ -11439,11 +11319,7 @@ const renderTextAreaClearButton = ({ props: { textAreaRef, i18n, onClick } })=>l
|
|
|
11439
11319
|
},
|
|
11440
11320
|
ariaLabel: i18n.t('clear-searchbox')
|
|
11441
11321
|
}
|
|
11442
|
-
})(lit.html`<atomic-icon
|
|
11443
|
-
part="clear-icon"
|
|
11444
|
-
icon=${clear_slim}
|
|
11445
|
-
class="h-4 w-4"
|
|
11446
|
-
></atomic-icon>`)}
|
|
11322
|
+
})(lit.html`<atomic-icon part="clear-icon" icon=${clear_slim} class="h-4 w-4"></atomic-icon>`)}
|
|
11447
11323
|
</div>`;
|
|
11448
11324
|
|
|
11449
11325
|
function syncTextWithReplica(ref, value) {
|
|
@@ -11537,10 +11413,7 @@ var search_slim = "<svg width=\"17\" height=\"17\" viewBox=\"0 0 17 17\" fill=\"
|
|
|
11537
11413
|
|
|
11538
11414
|
const renderSubmitButton = ({ props })=>{
|
|
11539
11415
|
const { i18n, disabled, onClick } = props;
|
|
11540
|
-
return lit.html`<div
|
|
11541
|
-
part="submit-button-wrapper"
|
|
11542
|
-
class="mr-2 flex items-center justify-center py-2"
|
|
11543
|
-
>
|
|
11416
|
+
return lit.html`<div part="submit-button-wrapper" class="mr-2 flex items-center justify-center py-2">
|
|
11544
11417
|
${renderButton({
|
|
11545
11418
|
props: {
|
|
11546
11419
|
style: 'text-primary',
|
|
@@ -11552,11 +11425,7 @@ const renderSubmitButton = ({ props })=>{
|
|
|
11552
11425
|
},
|
|
11553
11426
|
disabled
|
|
11554
11427
|
}
|
|
11555
|
-
})(lit.html`<atomic-icon
|
|
11556
|
-
part="submit-icon"
|
|
11557
|
-
icon=${search_slim}
|
|
11558
|
-
class="h-4 w-4"
|
|
11559
|
-
></atomic-icon>`)}
|
|
11428
|
+
})(lit.html`<atomic-icon part="submit-icon" icon=${search_slim} class="h-4 w-4"></atomic-icon>`)}
|
|
11560
11429
|
</div>`;
|
|
11561
11430
|
};
|
|
11562
11431
|
|
|
@@ -11853,10 +11722,7 @@ const getPartialSearchBoxSuggestionElement = (suggestion, i18n)=>({
|
|
|
11853
11722
|
const renderQuerySuggestion = ({ icon, hasQuery, suggestion, hasMultipleKindOfSuggestions, alwaysShowIcon = false })=>{
|
|
11854
11723
|
const shouldShowIcon = alwaysShowIcon || hasMultipleKindOfSuggestions;
|
|
11855
11724
|
const template = lit.html`
|
|
11856
|
-
<div
|
|
11857
|
-
part="query-suggestion-content"
|
|
11858
|
-
class="pointer-events-none flex items-center"
|
|
11859
|
-
>
|
|
11725
|
+
<div part="query-suggestion-content" class="pointer-events-none flex items-center">
|
|
11860
11726
|
${shouldShowIcon ? lit.html`<atomic-icon
|
|
11861
11727
|
part="query-suggestion-icon"
|
|
11862
11728
|
icon=${icon}
|
|
@@ -11904,11 +11770,7 @@ const renderRecentQuery = ({ icon, query, value })=>{
|
|
|
11904
11770
|
part="recent-query-content"
|
|
11905
11771
|
class="pointer-events-none flex items-center text-left break-all"
|
|
11906
11772
|
>
|
|
11907
|
-
<atomic-icon
|
|
11908
|
-
part="recent-query-icon"
|
|
11909
|
-
icon=${icon}
|
|
11910
|
-
class="mr-2 h-4 w-4 shrink-0"
|
|
11911
|
-
></atomic-icon>
|
|
11773
|
+
<atomic-icon part="recent-query-icon" icon=${icon} class="mr-2 h-4 w-4 shrink-0"></atomic-icon>
|
|
11912
11774
|
|
|
11913
11775
|
${when_js.when(hasQuery, ()=>lit.html`<span
|
|
11914
11776
|
part="recent-query-text"
|
|
@@ -11924,9 +11786,7 @@ const renderRecentQuery = ({ icon, query, value })=>{
|
|
|
11924
11786
|
}
|
|
11925
11787
|
]
|
|
11926
11788
|
})}
|
|
11927
|
-
></span>`, ()=>lit.html`<span part="recent-query-text" class="line-clamp-2 break-all">
|
|
11928
|
-
${value}
|
|
11929
|
-
</span>`)}
|
|
11789
|
+
></span>`, ()=>lit.html`<span part="recent-query-text" class="line-clamp-2 break-all"> ${value} </span>`)}
|
|
11930
11790
|
</div>`;
|
|
11931
11791
|
const container = document.createElement('div');
|
|
11932
11792
|
lit.render(template, container);
|
|
@@ -11937,9 +11797,7 @@ const renderRecentQueryClear = ({ i18n })=>{
|
|
|
11937
11797
|
part="recent-query-title-content"
|
|
11938
11798
|
class="pointer-events-none flex w-full justify-between"
|
|
11939
11799
|
>
|
|
11940
|
-
<span class="font-bold" part="recent-query-title">
|
|
11941
|
-
${i18n.t('recent-searches')}
|
|
11942
|
-
</span>
|
|
11800
|
+
<span class="font-bold" part="recent-query-title"> ${i18n.t('recent-searches')} </span>
|
|
11943
11801
|
<span part="recent-query-clear">${i18n.t('clear')}</span>
|
|
11944
11802
|
</div>`;
|
|
11945
11803
|
const container = document.createElement('div');
|
|
@@ -13618,11 +13476,7 @@ function defineCustomElement$1() {
|
|
|
13618
13476
|
}
|
|
13619
13477
|
defineCustomElement$1();
|
|
13620
13478
|
|
|
13621
|
-
const renderSortLabel = ({ props: { i18n, id } })=>lit.html`<label
|
|
13622
|
-
class="m-2 cursor-pointer text-sm font-bold"
|
|
13623
|
-
part="label"
|
|
13624
|
-
for=${id}
|
|
13625
|
-
>
|
|
13479
|
+
const renderSortLabel = ({ props: { i18n, id } })=>lit.html`<label class="m-2 cursor-pointer text-sm font-bold" part="label" for=${id}>
|
|
13626
13480
|
${i18n.t('with-colon', {
|
|
13627
13481
|
text: i18n.t('sort-by')
|
|
13628
13482
|
})}
|
|
@@ -13715,12 +13569,9 @@ const renderRating = ({ props })=>{
|
|
|
13715
13569
|
})}
|
|
13716
13570
|
>
|
|
13717
13571
|
<div class="z-0 flex gap-0.5">${emptyIconDisplay()}</div>
|
|
13718
|
-
<div
|
|
13719
|
-
class="absolute top-0 left-0 z-1 flex gap-0.5 overflow-hidden"
|
|
13720
|
-
style=${styleMap_js.styleMap({
|
|
13572
|
+
<div class="absolute top-0 left-0 z-1 flex gap-0.5 overflow-hidden" style=${styleMap_js.styleMap({
|
|
13721
13573
|
width
|
|
13722
|
-
})}
|
|
13723
|
-
>
|
|
13574
|
+
})}>
|
|
13724
13575
|
${filledIconDisplay()}
|
|
13725
13576
|
</div>
|
|
13726
13577
|
</div>`;
|
|
@@ -13769,9 +13620,7 @@ class AtomicAgentStreamOfThought extends lit.LitElement {
|
|
|
13769
13620
|
if (0 === resolvedSteps.length) return lit.nothing;
|
|
13770
13621
|
const isComplete = !this.isStreaming;
|
|
13771
13622
|
const isCollapsible = resolvedSteps.length > 1;
|
|
13772
|
-
if (isComplete && !this.expanded && isCollapsible) return lit.html`
|
|
13773
|
-
<div class="timeline">${this.renderCollapsedTimelineSummary()}</div>
|
|
13774
|
-
`;
|
|
13623
|
+
if (isComplete && !this.expanded && isCollapsible) return lit.html` <div class="timeline">${this.renderCollapsedTimelineSummary()}</div> `;
|
|
13775
13624
|
return lit.html`
|
|
13776
13625
|
<div class="timeline">
|
|
13777
13626
|
${map_js.map(resolvedSteps, (step)=>this.renderStep(step))}
|
|
@@ -13826,9 +13675,7 @@ class AtomicAgentStreamOfThought extends lit.LitElement {
|
|
|
13826
13675
|
`;
|
|
13827
13676
|
}
|
|
13828
13677
|
renderSpinner() {
|
|
13829
|
-
return lit.html`<span class="step-icon"
|
|
13830
|
-
><span class="spinner" aria-hidden="true"></span
|
|
13831
|
-
></span>`;
|
|
13678
|
+
return lit.html`<span class="step-icon"><span class="spinner" aria-hidden="true"></span></span>`;
|
|
13832
13679
|
}
|
|
13833
13680
|
renderCheckmark() {
|
|
13834
13681
|
return lit.html`
|
|
@@ -14043,12 +13890,7 @@ class AtomicAskFollowUpInput extends lit.LitElement {
|
|
|
14043
13890
|
ariaLabel: this.i18n.t('submit-follow-up'),
|
|
14044
13891
|
onClick: ()=>this.handleSubmit()
|
|
14045
13892
|
}
|
|
14046
|
-
})(lit.html`<svg
|
|
14047
|
-
class="h-4 w-4"
|
|
14048
|
-
viewBox="0 0 20 20"
|
|
14049
|
-
fill="currentColor"
|
|
14050
|
-
part="submit-icon"
|
|
14051
|
-
>
|
|
13893
|
+
})(lit.html`<svg class="h-4 w-4" viewBox="0 0 20 20" fill="currentColor" part="submit-icon">
|
|
14052
13894
|
<path
|
|
14053
13895
|
fill-rule="evenodd"
|
|
14054
13896
|
d="M10 17a.75.75 0 01-.75-.75V5.612L5.29 9.77a.75.75 0 01-1.08-1.04l5.25-5.5a.75.75 0 011.08 0l5.25 5.5a.75.75 0 11-1.08 1.04L10.75 5.612V16.25A.75.75 0 0110 17z"
|
|
@@ -18567,11 +18409,7 @@ class AtomicCitation extends lit.LitElement {
|
|
|
18567
18409
|
onFocus: this.openPopover,
|
|
18568
18410
|
onBlur: this.closePopover
|
|
18569
18411
|
}
|
|
18570
|
-
})(lit.html`
|
|
18571
|
-
<span class="citation-title mx-1 truncate">
|
|
18572
|
-
${this.citation.title}
|
|
18573
|
-
</span>
|
|
18574
|
-
`)}
|
|
18412
|
+
})(lit.html` <span class="citation-title mx-1 truncate"> ${this.citation.title} </span> `)}
|
|
18575
18413
|
${this.renderPopover()}
|
|
18576
18414
|
</div>
|
|
18577
18415
|
`;
|
|
@@ -18759,11 +18597,7 @@ class AtomicFacetNumberInput extends LightDomMixin(lit.LitElement) {
|
|
|
18759
18597
|
return false;
|
|
18760
18598
|
}}
|
|
18761
18599
|
>
|
|
18762
|
-
<label
|
|
18763
|
-
part="label-start"
|
|
18764
|
-
class=${labelClasses}
|
|
18765
|
-
for="${this.filterState.facetId}_start"
|
|
18766
|
-
>
|
|
18600
|
+
<label part="label-start" class=${labelClasses} for="${this.filterState.facetId}_start">
|
|
18767
18601
|
${minText}
|
|
18768
18602
|
</label>
|
|
18769
18603
|
<input
|
|
@@ -18782,11 +18616,7 @@ class AtomicFacetNumberInput extends LightDomMixin(lit.LitElement) {
|
|
|
18782
18616
|
}}
|
|
18783
18617
|
${ref_js.ref(this.startRef)}
|
|
18784
18618
|
/>
|
|
18785
|
-
<label
|
|
18786
|
-
part="label-end"
|
|
18787
|
-
class=${labelClasses}
|
|
18788
|
-
for="${this.filterState.facetId}_end"
|
|
18789
|
-
>
|
|
18619
|
+
<label part="label-end" class=${labelClasses} for="${this.filterState.facetId}_end">
|
|
18790
18620
|
${maxText}
|
|
18791
18621
|
</label>
|
|
18792
18622
|
<input
|
|
@@ -19165,10 +18995,7 @@ const renderGeneratedMarkdownContent = ({ props })=>{
|
|
|
19165
18995
|
}
|
|
19166
18996
|
});
|
|
19167
18997
|
return lit.html`
|
|
19168
|
-
<div
|
|
19169
|
-
part="generated-text"
|
|
19170
|
-
class="text-on-background mb-0 ${props.isStreaming ? 'cursor' : ''}"
|
|
19171
|
-
>
|
|
18998
|
+
<div part="generated-text" class="text-on-background mb-0 ${props.isStreaming ? 'cursor' : ''}">
|
|
19172
18999
|
${unsafeHtml_js.unsafeHTML(answerAsHtml)}
|
|
19173
19000
|
</div>
|
|
19174
19001
|
`;
|
|
@@ -19314,12 +19141,8 @@ const renderFeedbackAndCopyButtons = ({ props })=>{
|
|
|
19314
19141
|
|
|
19315
19142
|
const renderSourceCitations = ({ props })=>(children)=>props.isVisible ? lit.html`
|
|
19316
19143
|
<div class="source-citations">
|
|
19317
|
-
<p part="citations-label" class="text-neutral-dark mb-2 shrink-0">
|
|
19318
|
-
|
|
19319
|
-
</p>
|
|
19320
|
-
<ol
|
|
19321
|
-
class="citations-container flex list-none flex-wrap items-center gap-2"
|
|
19322
|
-
>
|
|
19144
|
+
<p part="citations-label" class="text-neutral-dark mb-2 shrink-0">${props.label}</p>
|
|
19145
|
+
<ol class="citations-container flex list-none flex-wrap items-center gap-2">
|
|
19323
19146
|
${children}
|
|
19324
19147
|
</ol>
|
|
19325
19148
|
</div>
|
|
@@ -19644,9 +19467,7 @@ let AtomicGeneratedAnswerFeedbackModal$1 = class AtomicGeneratedAnswerFeedbackMo
|
|
|
19644
19467
|
${this.bindings.i18n.t(label)}
|
|
19645
19468
|
<span class=${multiClassMap({
|
|
19646
19469
|
'text-error-red ml-0.5': true
|
|
19647
|
-
})}
|
|
19648
|
-
>*</span
|
|
19649
|
-
>
|
|
19470
|
+
})}>*</span>
|
|
19650
19471
|
</label>
|
|
19651
19472
|
</div>
|
|
19652
19473
|
<span
|
|
@@ -19686,29 +19507,29 @@ let AtomicGeneratedAnswerFeedbackModal$1 = class AtomicGeneratedAnswerFeedbackMo
|
|
|
19686
19507
|
label: this.bindings.i18n.t(localeKey)
|
|
19687
19508
|
}
|
|
19688
19509
|
})(lit.html`
|
|
19689
|
-
|
|
19690
|
-
|
|
19510
|
+
<div
|
|
19511
|
+
class=${multiClassMap({
|
|
19691
19512
|
'answer-evaluation mt-3 flex items-center': true,
|
|
19692
19513
|
[String(correspondingAnswer)]: true
|
|
19693
19514
|
})}
|
|
19694
|
-
|
|
19695
|
-
|
|
19696
|
-
|
|
19515
|
+
key=${String(correspondingAnswer)}
|
|
19516
|
+
>
|
|
19517
|
+
<div class=${multiClassMap({
|
|
19697
19518
|
'flex-1 pr-4': true
|
|
19698
19519
|
})}>
|
|
19699
|
-
|
|
19700
|
-
|
|
19701
|
-
|
|
19702
|
-
|
|
19520
|
+
${this.renderAnswerEvaluation(localeKey, correspondingAnswer)}
|
|
19521
|
+
</div>
|
|
19522
|
+
<div
|
|
19523
|
+
class=${multiClassMap({
|
|
19703
19524
|
'options flex flex-shrink-0 text-base': true
|
|
19704
19525
|
})}
|
|
19705
|
-
|
|
19706
|
-
|
|
19707
|
-
|
|
19708
|
-
|
|
19709
|
-
</div>
|
|
19526
|
+
>
|
|
19527
|
+
${this.renderFeedbackOption('yes', correspondingAnswer)}
|
|
19528
|
+
${this.renderFeedbackOption('unknown', correspondingAnswer)}
|
|
19529
|
+
${this.renderFeedbackOption('no', correspondingAnswer)}
|
|
19710
19530
|
</div>
|
|
19711
|
-
|
|
19531
|
+
</div>
|
|
19532
|
+
`))}
|
|
19712
19533
|
</fieldset>
|
|
19713
19534
|
`;
|
|
19714
19535
|
}
|
|
@@ -19771,18 +19592,12 @@ let AtomicGeneratedAnswerFeedbackModal$1 = class AtomicGeneratedAnswerFeedbackMo
|
|
|
19771
19592
|
}
|
|
19772
19593
|
renderSuccessMessage() {
|
|
19773
19594
|
return lit.html`
|
|
19774
|
-
<div
|
|
19775
|
-
slot="body"
|
|
19776
|
-
class=${multiClassMap({
|
|
19595
|
+
<div slot="body" class=${multiClassMap({
|
|
19777
19596
|
'my-4 flex flex-col items-center gap-4': true
|
|
19778
|
-
})}
|
|
19779
|
-
|
|
19780
|
-
<atomic-icon
|
|
19781
|
-
icon=${success}
|
|
19782
|
-
class=${multiClassMap({
|
|
19597
|
+
})}>
|
|
19598
|
+
<atomic-icon icon=${success} class=${multiClassMap({
|
|
19783
19599
|
'w-48': true
|
|
19784
|
-
})}
|
|
19785
|
-
></atomic-icon>
|
|
19600
|
+
})}></atomic-icon>
|
|
19786
19601
|
<p
|
|
19787
19602
|
class=${multiClassMap({
|
|
19788
19603
|
'text-base': true
|
|
@@ -19804,19 +19619,15 @@ let AtomicGeneratedAnswerFeedbackModal$1 = class AtomicGeneratedAnswerFeedbackMo
|
|
|
19804
19619
|
const buttonClasses = 'flex items-center justify-center text-sm leading-4 p-2 rounded-md';
|
|
19805
19620
|
return lit.html`
|
|
19806
19621
|
<div slot="footer" part="modal-footer">
|
|
19807
|
-
<div
|
|
19808
|
-
class=${multiClassMap({
|
|
19622
|
+
<div class=${multiClassMap({
|
|
19809
19623
|
'flex items-center justify-between': true
|
|
19810
|
-
})}
|
|
19811
|
-
>
|
|
19624
|
+
})}>
|
|
19812
19625
|
<div class=${multiClassMap({
|
|
19813
19626
|
'required-label text-base': true
|
|
19814
19627
|
})}>
|
|
19815
19628
|
<span class=${multiClassMap({
|
|
19816
19629
|
'text-error-red mr-0.5': true
|
|
19817
|
-
})}
|
|
19818
|
-
>*</span
|
|
19819
|
-
>
|
|
19630
|
+
})}>*</span>
|
|
19820
19631
|
${this.bindings.i18n.t('required-fields')}
|
|
19821
19632
|
</div>
|
|
19822
19633
|
<div class=${multiClassMap({
|
|
@@ -20080,9 +19891,7 @@ class AtomicGeneratedAnswerThreadItem extends lit.LitElement {
|
|
|
20080
19891
|
class=${titleButtonClasses}
|
|
20081
19892
|
@click=${this.toggle}
|
|
20082
19893
|
>
|
|
20083
|
-
<span part="thread-item-title" style=${clampedTitleStyles}
|
|
20084
|
-
>${this.title}</span
|
|
20085
|
-
>
|
|
19894
|
+
<span part="thread-item-title" style=${clampedTitleStyles}>${this.title}</span>
|
|
20086
19895
|
</button>`, ()=>lit.html`<span
|
|
20087
19896
|
class=${titleTextClasses}
|
|
20088
19897
|
part="thread-item-title"
|
|
@@ -20188,8 +19997,7 @@ class AtomicGeneratedAnswerThread extends lit.LitElement {
|
|
|
20188
19997
|
const lastGeneratedAnswer = this.generatedAnswers[this.generatedAnswers.length - 1];
|
|
20189
19998
|
return lit.html`
|
|
20190
19999
|
<ul>
|
|
20191
|
-
${this.renderShowPreviousAnswersButton()}
|
|
20192
|
-
${this.renderThread([
|
|
20000
|
+
${this.renderShowPreviousAnswersButton()} ${this.renderThread([
|
|
20193
20001
|
lastGeneratedAnswer
|
|
20194
20002
|
])}
|
|
20195
20003
|
</ul>
|
|
@@ -20254,14 +20062,10 @@ class AtomicGeneratedAnswerThread extends lit.LitElement {
|
|
|
20254
20062
|
return lit.html`
|
|
20255
20063
|
<li class="group/title grid min-w-0 grid-cols-[10px_1fr] gap-x-3">
|
|
20256
20064
|
<div class="row-span-2 flex flex-col items-center">
|
|
20257
|
-
<div
|
|
20258
|
-
class="flex justify-center items-center text-base h-[1lh] my-1.5"
|
|
20259
|
-
>
|
|
20065
|
+
<div class="flex justify-center items-center text-base h-[1lh] my-1.5">
|
|
20260
20066
|
<span class=${timelineDotClasses}></span>
|
|
20261
20067
|
</div>
|
|
20262
|
-
<div
|
|
20263
|
-
class="flex grow w-full justify-center items-center py-2 -my-2 min-h-3"
|
|
20264
|
-
>
|
|
20068
|
+
<div class="flex grow w-full justify-center items-center py-2 -my-2 min-h-3">
|
|
20265
20069
|
<span class=${timelineConnectorClasses}> </span>
|
|
20266
20070
|
</div>
|
|
20267
20071
|
</div>
|
|
@@ -20610,8 +20414,7 @@ class AtomicSmartSnippetCollapseWrapper extends InitializeBindingsMixin(lit.LitE
|
|
|
20610
20414
|
}
|
|
20611
20415
|
}
|
|
20612
20416
|
AtomicSmartSnippetCollapseWrapper.styles = lit.css`:host{display:block}:host(.invisible){visibility:hidden}.smart-snippet-content{height:auto;max-height:var(--collapsed-size);transition:max-height 2s cubic-bezier(0,1,.16,1) -1.82s;--gradient-start:var(
|
|
20613
|
-
--atomic-smart-snippet-gradient-start,calc(max(var(--collapsed-size) - (var(--line-height) * 1.5),
|
|
20614
|
-
var(--collapsed-size) * 0.5))
|
|
20417
|
+
--atomic-smart-snippet-gradient-start,calc(max(var(--collapsed-size) - (var(--line-height) * 1.5), var(--collapsed-size) * 0.5))
|
|
20615
20418
|
);mask-image:linear-gradient(#000,#000 var(--gradient-start),transparent 100%)}:host(.expanded) .smart-snippet-content{height:auto;mask-image:none;max-height:9999999px;transition:max-height 2s cubic-bezier(1,0,1,0) 0s}:host(.expanded) button atomic-icon{transform:scaleY(-1)}`;
|
|
20616
20419
|
_ts_decorate$1h([
|
|
20617
20420
|
decorators_js.state(),
|
|
@@ -20751,10 +20554,7 @@ class AtomicSmartSnippetExpandableAnswer extends lit.LitElement {
|
|
|
20751
20554
|
aria-expanded=${this.isExpanded ? 'true' : 'false'}
|
|
20752
20555
|
>
|
|
20753
20556
|
${this.bindings.i18n.t(this.isExpanded ? 'show-less' : 'show-more')}
|
|
20754
|
-
<atomic-icon
|
|
20755
|
-
.icon=${arrow_down}
|
|
20756
|
-
class="ml-2 w-3 align-baseline"
|
|
20757
|
-
></atomic-icon>
|
|
20557
|
+
<atomic-icon .icon=${arrow_down} class="ml-2 w-3 align-baseline"></atomic-icon>
|
|
20758
20558
|
</button>
|
|
20759
20559
|
`);
|
|
20760
20560
|
}
|
|
@@ -21071,10 +20871,7 @@ class AtomicSmartSnippetSource extends LightDomMixin(lit.LitElement) {
|
|
|
21071
20871
|
onBeginDelayedSelect: ()=>this.handleSourceEvent('begin-delayed-select-source'),
|
|
21072
20872
|
onCancelPendingSelect: ()=>this.handleSourceEvent('cancel-pending-select-source')
|
|
21073
20873
|
}
|
|
21074
|
-
})(lit.html`<atomic-result-text
|
|
21075
|
-
field="title"
|
|
21076
|
-
default="no-title"
|
|
21077
|
-
></atomic-result-text>`)}
|
|
20874
|
+
})(lit.html`<atomic-result-text field="title" default="no-title"></atomic-result-text>`)}
|
|
21078
20875
|
`)}`;
|
|
21079
20876
|
}
|
|
21080
20877
|
constructor(...args){
|
|
@@ -21285,9 +21082,7 @@ class AtomicTabPopover extends lit.LitElement {
|
|
|
21285
21082
|
render() {
|
|
21286
21083
|
this.classList.toggle('visibility-hidden', !this.show);
|
|
21287
21084
|
this.ariaHidden = String(!this.show);
|
|
21288
|
-
return lit.html`
|
|
21289
|
-
${this.renderPopover()} ${when_js.when(this.isOpen, ()=>this.renderBackdrop())}
|
|
21290
|
-
`;
|
|
21085
|
+
return lit.html` ${this.renderPopover()} ${when_js.when(this.isOpen, ()=>this.renderBackdrop())} `;
|
|
21291
21086
|
}
|
|
21292
21087
|
constructor(...args){
|
|
21293
21088
|
super(...args), this.show = false, this.isOpen = false, this.buttonRef = ref_js.createRef(), this.popupRef = ref_js.createRef(), this.popoverId = 'atomic-tab-popover', this.handleKeyDown = (e)=>{
|
|
@@ -21539,10 +21334,7 @@ class AtomicTabButton extends LightDomMixin(lit.LitElement) {
|
|
|
21539
21334
|
'sm:px-6'
|
|
21540
21335
|
].filter(Boolean).join(' ');
|
|
21541
21336
|
return lit.html`
|
|
21542
|
-
<span
|
|
21543
|
-
class=${buttonClasses}
|
|
21544
|
-
part=${this.active ? 'tab-button-active' : 'tab-button'}
|
|
21545
|
-
>
|
|
21337
|
+
<span class=${buttonClasses} part=${this.active ? 'tab-button-active' : 'tab-button'}>
|
|
21546
21338
|
${this.label}
|
|
21547
21339
|
</span>
|
|
21548
21340
|
`;
|
|
@@ -21926,10 +21718,7 @@ const renderGeneratingAnswerLabel = ({ props })=>{
|
|
|
21926
21718
|
const { i18n, isStreaming, collapsible } = props;
|
|
21927
21719
|
const canRender = collapsible && isStreaming;
|
|
21928
21720
|
return lit.html`${n(canRender, ()=>lit.html`
|
|
21929
|
-
<div
|
|
21930
|
-
part="is-generating"
|
|
21931
|
-
class="text-primary hidden text-base font-light"
|
|
21932
|
-
>
|
|
21721
|
+
<div part="is-generating" class="text-primary hidden text-base font-light">
|
|
21933
21722
|
${i18n.t('generating-answer')}...
|
|
21934
21723
|
</div>
|
|
21935
21724
|
`)}`;
|
|
@@ -22024,9 +21813,7 @@ const renderSwitch = ({ props })=>{
|
|
|
22024
21813
|
|
|
22025
21814
|
const renderConversationDebugHeader = ({ props })=>{
|
|
22026
21815
|
const { i18n, conversationId } = props;
|
|
22027
|
-
return lit.html`<div
|
|
22028
|
-
class="flex flex-wrap gap-1.5 items-center text-neutral-dark"
|
|
22029
|
-
>
|
|
21816
|
+
return lit.html`<div class="flex flex-wrap gap-1.5 items-center text-neutral-dark">
|
|
22030
21817
|
${i18n.t('generated-answer-debug-mode-on')}
|
|
22031
21818
|
<div class="bg-success h-2 w-2 rounded-full shrink-0"></div>
|
|
22032
21819
|
|
|
@@ -22043,10 +21830,7 @@ const renderConversationDebugHeader = ({ props })=>{
|
|
|
22043
21830
|
navigator.clipboard.writeText(conversationId).catch(()=>{});
|
|
22044
21831
|
}
|
|
22045
21832
|
}
|
|
22046
|
-
})(lit.html`<atomic-icon
|
|
22047
|
-
class="w-4 text-neutral-dark"
|
|
22048
|
-
.icon=${copy}
|
|
22049
|
-
></atomic-icon>`) : lit.nothing}
|
|
21833
|
+
})(lit.html`<atomic-icon class="w-4 text-neutral-dark" .icon=${copy}></atomic-icon>`) : lit.nothing}
|
|
22050
21834
|
</div>
|
|
22051
21835
|
</div>`;
|
|
22052
21836
|
};
|
|
@@ -22149,10 +21933,7 @@ function createLegacyArrayStringConverter(onDeprecatedFormat) {
|
|
|
22149
21933
|
|
|
22150
21934
|
const renderFacetPlaceholder = ({ props })=>{
|
|
22151
21935
|
const facetValues = [];
|
|
22152
|
-
for(let i = 0; i < props.numberOfValues; i++)facetValues.push(lit.html`<div
|
|
22153
|
-
class="bg-neutral mt-4 flex h-5"
|
|
22154
|
-
style="width: 100%; opacity: 0.5"
|
|
22155
|
-
></div>`);
|
|
21936
|
+
for(let i = 0; i < props.numberOfValues; i++)facetValues.push(lit.html`<div class="bg-neutral mt-4 flex h-5" style="width: 100%; opacity: 0.5"></div>`);
|
|
22156
21937
|
return lit.html`<div
|
|
22157
21938
|
part="placeholder"
|
|
22158
21939
|
class="bg-background border-neutral mb-4 animate-pulse rounded-lg border p-7"
|
|
@@ -22257,10 +22038,9 @@ class ItemDisplayConfigContextController {
|
|
|
22257
22038
|
const renderChildrenWrapper = ()=>(children)=>{
|
|
22258
22039
|
const hasChildren = children !== lit.nothing;
|
|
22259
22040
|
return lit.html`<div part="children-root">
|
|
22260
|
-
|
|
22261
|
-
|
|
22262
|
-
|
|
22263
|
-
</div>`;
|
|
22041
|
+
${when_js.when(hasChildren, ()=>lit.html`<slot name="before-children"></slot>`)} ${children}
|
|
22042
|
+
${when_js.when(hasChildren, ()=>lit.html`<slot name="after-children"></slot>`)}
|
|
22043
|
+
</div>`;
|
|
22264
22044
|
};
|
|
22265
22045
|
|
|
22266
22046
|
const renderCollectionGuard = ({ props })=>(children)=>{
|
|
@@ -22277,9 +22057,7 @@ const renderCollectionGuard = ({ props })=>(children)=>{
|
|
|
22277
22057
|
});
|
|
22278
22058
|
return hasChildren ? renderChildrenWrapper()(placeholders) : lit.html`<div part="children-root">${placeholders}</div>`;
|
|
22279
22059
|
}
|
|
22280
|
-
if (!moreResultsAvailable && !hasChildren) return when_js.when(noResultText.trim().length > 0, ()=>lit.html`<p part="no-result-root" class="no-result-root my-3"
|
|
22281
|
-
${noResultText}
|
|
22282
|
-
</p>`);
|
|
22060
|
+
if (!moreResultsAvailable && !hasChildren) return when_js.when(noResultText.trim().length > 0, ()=>lit.html`<p part="no-result-root" class="no-result-root my-3">${noResultText}</p>`);
|
|
22283
22061
|
if (!hasChildren) return lit.nothing;
|
|
22284
22062
|
return children;
|
|
22285
22063
|
};
|
|
@@ -22323,9 +22101,7 @@ const renderHighlightKeywordsCheckbox = ({ props })=>{
|
|
|
22323
22101
|
}
|
|
22324
22102
|
})}
|
|
22325
22103
|
${when_js.when(!props.minimized, ()=>lit.html`
|
|
22326
|
-
<label
|
|
22327
|
-
class="cursor-pointer font-bold whitespace-nowrap"
|
|
22328
|
-
for=${highlightKeywordsCheckboxId}
|
|
22104
|
+
<label class="cursor-pointer font-bold whitespace-nowrap" for=${highlightKeywordsCheckboxId}
|
|
22329
22105
|
>${label}</label
|
|
22330
22106
|
>
|
|
22331
22107
|
`)}
|
|
@@ -22358,10 +22134,7 @@ const renderKeywords = ({ props })=>lit.html`
|
|
|
22358
22134
|
return lit.html`
|
|
22359
22135
|
<div class="my-4 flex w-100 items-center justify-between gap-x-2">
|
|
22360
22136
|
<div class=${multiClassMap(keywordContainerClasses)}>
|
|
22361
|
-
<div
|
|
22362
|
-
class="flex grow items-center border-r p-4"
|
|
22363
|
-
aria-hidden="true"
|
|
22364
|
-
>
|
|
22137
|
+
<div class="flex grow items-center border-r p-4" aria-hidden="true">
|
|
22365
22138
|
<div
|
|
22366
22139
|
class="mr-2 h-5 w-5 flex-none"
|
|
22367
22140
|
style=${styleMap_js.styleMap({
|
|
@@ -22468,11 +22241,9 @@ const renderQuickviewSidebar = ({ props })=>{
|
|
|
22468
22241
|
}
|
|
22469
22242
|
}))}
|
|
22470
22243
|
<div class="flex items-center justify-between">
|
|
22471
|
-
<div class="flex items-center"
|
|
22472
|
-
${renderHighlightKeywordsCheckbox({
|
|
22244
|
+
<div class="flex items-center">${renderHighlightKeywordsCheckbox({
|
|
22473
22245
|
props
|
|
22474
|
-
})}
|
|
22475
|
-
</div>
|
|
22246
|
+
})}</div>
|
|
22476
22247
|
${when_js.when(!props.minimized, ()=>lit.html`
|
|
22477
22248
|
<div>
|
|
22478
22249
|
${renderMinimizeButton({
|
|
@@ -22901,10 +22672,7 @@ let AtomicQuickviewModal$1 = class AtomicQuickviewModal extends lit.LitElement {
|
|
|
22901
22672
|
renderBody() {
|
|
22902
22673
|
return lit.html`
|
|
22903
22674
|
<div slot="body" class="grid h-full grid-cols-[min-content_auto]">
|
|
22904
|
-
<div
|
|
22905
|
-
class="h-full overflow-y-auto"
|
|
22906
|
-
style="background-color: var(--atomic-neutral-light)"
|
|
22907
|
-
>
|
|
22675
|
+
<div class="h-full overflow-y-auto" style="background-color: var(--atomic-neutral-light)">
|
|
22908
22676
|
${renderQuickviewSidebar({
|
|
22909
22677
|
props: {
|
|
22910
22678
|
words: this.words,
|
|
@@ -23147,10 +22915,7 @@ AtomicQuickviewModal$1 = _ts_decorate$19([
|
|
|
23147
22915
|
withTailwindStyles
|
|
23148
22916
|
], AtomicQuickviewModal$1);
|
|
23149
22917
|
|
|
23150
|
-
const renderSnippetFooter = ({ props })=>(children)=>lit.html`<footer
|
|
23151
|
-
part="footer"
|
|
23152
|
-
aria-label=${props.i18n.t('smart-snippet-source')}
|
|
23153
|
-
>
|
|
22918
|
+
const renderSnippetFooter = ({ props })=>(children)=>lit.html`<footer part="footer" aria-label=${props.i18n.t('smart-snippet-source')}>
|
|
23154
22919
|
${children}
|
|
23155
22920
|
</footer>`;
|
|
23156
22921
|
|
|
@@ -23245,10 +23010,7 @@ const renderSmartSnippetFeedbackBanner = ({ props })=>{
|
|
|
23245
23010
|
ref: props.explainWhyRef
|
|
23246
23011
|
}
|
|
23247
23012
|
})(lit.html`${props.i18n.t('smart-snippet-feedback-explain-why')}`);
|
|
23248
|
-
const renderThankYouContainer = (visible)=>when_js.when(visible, ()=>lit.html`<div
|
|
23249
|
-
part="feedback-thank-you-wrapper"
|
|
23250
|
-
class="flex flex-wrap gap-1"
|
|
23251
|
-
>
|
|
23013
|
+
const renderThankYouContainer = (visible)=>when_js.when(visible, ()=>lit.html`<div part="feedback-thank-you-wrapper" class="flex flex-wrap gap-1">
|
|
23252
23014
|
${renderThankYouMessage()}
|
|
23253
23015
|
${when_js.when(props.disliked && !props.feedbackSent, ()=>renderExplainWhyButton())}
|
|
23254
23016
|
</div>`);
|
|
@@ -23291,21 +23053,12 @@ const feedbackOptions = [
|
|
|
23291
23053
|
}
|
|
23292
23054
|
];
|
|
23293
23055
|
|
|
23294
|
-
const renderModalBody = ({ props: { formId, onSubmit } })=>(children)=>lit.html`<form
|
|
23295
|
-
part="form"
|
|
23296
|
-
id=${formId}
|
|
23297
|
-
slot="body"
|
|
23298
|
-
@submit=${onSubmit}
|
|
23299
|
-
class="flex flex-col gap-8"
|
|
23300
|
-
>
|
|
23056
|
+
const renderModalBody = ({ props: { formId, onSubmit } })=>(children)=>lit.html`<form part="form" id=${formId} slot="body" @submit=${onSubmit} class="flex flex-col gap-8">
|
|
23301
23057
|
${children}
|
|
23302
23058
|
</form>`;
|
|
23303
23059
|
|
|
23304
23060
|
const renderModalDetails = ({ props: { currentAnswer, i18n, detailsInputRef } })=>when_js.when('other' === currentAnswer, ()=>lit.html`<fieldset>
|
|
23305
|
-
<legend
|
|
23306
|
-
part="details-title"
|
|
23307
|
-
class="text-on-background text-lg font-bold"
|
|
23308
|
-
>
|
|
23061
|
+
<legend part="details-title" class="text-on-background text-lg font-bold">
|
|
23309
23062
|
${i18n.t('details')}
|
|
23310
23063
|
</legend>
|
|
23311
23064
|
<textarea
|
|
@@ -23364,18 +23117,11 @@ const renderModalOptions = ({ props: { i18n } })=>(children)=>lit.html`<fieldset
|
|
|
23364
23117
|
${children}
|
|
23365
23118
|
</fieldset>`;
|
|
23366
23119
|
|
|
23367
|
-
const renderAnswerAndSourceWrapper = ({ props })=>(children)=>lit.html`<div
|
|
23368
|
-
part="answer-and-source"
|
|
23369
|
-
class="pr-6 pb-6 pl-10"
|
|
23370
|
-
id=${props.id}
|
|
23371
|
-
>
|
|
23120
|
+
const renderAnswerAndSourceWrapper = ({ props })=>(children)=>lit.html`<div part="answer-and-source" class="pr-6 pb-6 pl-10" id=${props.id}>
|
|
23372
23121
|
${children}
|
|
23373
23122
|
</div>`;
|
|
23374
23123
|
|
|
23375
|
-
const renderFooter = ({ props })=>(children)=>lit.html`<footer
|
|
23376
|
-
part="footer"
|
|
23377
|
-
aria-label=${props.i18n.t('smart-snippet-source')}
|
|
23378
|
-
>
|
|
23124
|
+
const renderFooter = ({ props })=>(children)=>lit.html`<footer part="footer" aria-label=${props.i18n.t('smart-snippet-source')}>
|
|
23379
23125
|
${children}
|
|
23380
23126
|
</footer>`;
|
|
23381
23127
|
|
|
@@ -23721,10 +23467,7 @@ let AtomicResultLink$1 = class AtomicResultLink extends LightDomMixin(SlotsForNo
|
|
|
23721
23467
|
}
|
|
23722
23468
|
}
|
|
23723
23469
|
})(lit.html`
|
|
23724
|
-
${this.renderDefaultSlotContent(lit.html`<atomic-result-text
|
|
23725
|
-
field="title"
|
|
23726
|
-
default="no-title"
|
|
23727
|
-
></atomic-result-text>`)}
|
|
23470
|
+
${this.renderDefaultSlotContent(lit.html`<atomic-result-text field="title" default="no-title"></atomic-result-text>`)}
|
|
23728
23471
|
`);
|
|
23729
23472
|
})}`;
|
|
23730
23473
|
}
|
|
@@ -24925,8 +24668,7 @@ let AtomicAutomaticFacet$1 = class AtomicAutomaticFacet extends InitializeBindin
|
|
|
24925
24668
|
render() {
|
|
24926
24669
|
if (this.searchStatus.state.hasError) return lit.nothing;
|
|
24927
24670
|
return renderFacetContainer()(lit.html`
|
|
24928
|
-
${this.renderHeader()}
|
|
24929
|
-
${when_js.when(!this.isCollapsed, ()=>this.renderValues())}
|
|
24671
|
+
${this.renderHeader()} ${when_js.when(!this.isCollapsed, ()=>this.renderValues())}
|
|
24930
24672
|
`);
|
|
24931
24673
|
}
|
|
24932
24674
|
constructor(...args){
|
|
@@ -25038,14 +24780,14 @@ let AtomicAutomaticFacetGenerator$1 = class AtomicAutomaticFacetGenerator extend
|
|
|
25038
24780
|
renderAutomaticFacets() {
|
|
25039
24781
|
if (0 === this.automaticFacetGeneratorState.automaticFacets.length) return lit.nothing;
|
|
25040
24782
|
return lit.html`${this.automaticFacetGeneratorState.automaticFacets.map((facet, index)=>keyed_js.keyed(facet.state.field, lit.html`
|
|
25041
|
-
|
|
25042
|
-
|
|
25043
|
-
|
|
25044
|
-
|
|
25045
|
-
|
|
25046
|
-
|
|
25047
|
-
|
|
25048
|
-
|
|
24783
|
+
<atomic-automatic-facet
|
|
24784
|
+
.field=${facet.state.field}
|
|
24785
|
+
.facetId=${facet.state.field}
|
|
24786
|
+
.facet=${facet}
|
|
24787
|
+
.searchStatus=${this.searchStatus}
|
|
24788
|
+
?isCollapsed=${this.shouldCollapseFacet(index)}
|
|
24789
|
+
></atomic-automatic-facet>
|
|
24790
|
+
`))}`;
|
|
25049
24791
|
}
|
|
25050
24792
|
shouldCollapseFacet(index) {
|
|
25051
24793
|
if (-1 === this.collapseFacetsAfter) return false;
|
|
@@ -25680,11 +25422,9 @@ let AtomicCategoryFacet$1 = class AtomicCategoryFacet extends lit.LitElement {
|
|
|
25680
25422
|
this.focusTargets.activeValueFocus.setTarget(el);
|
|
25681
25423
|
}
|
|
25682
25424
|
}
|
|
25683
|
-
})(lit.html`
|
|
25684
|
-
${renderCategoryFacetChildrenAsTreeContainer({
|
|
25425
|
+
})(lit.html` ${renderCategoryFacetChildrenAsTreeContainer({
|
|
25685
25426
|
props: {}
|
|
25686
|
-
})(this.renderChildren())}
|
|
25687
|
-
`)}
|
|
25427
|
+
})(this.renderChildren())} `)}
|
|
25688
25428
|
`;
|
|
25689
25429
|
}
|
|
25690
25430
|
renderChild(facetValue, isShowLessFocusTarget, isShowMoreFocusTarget) {
|
|
@@ -26102,9 +25842,7 @@ let AtomicColorFacet$1 = class AtomicColorFacet extends lit.LitElement {
|
|
|
26102
25842
|
return this.searchStatusState && !this.searchStatusState.hasError && this.facetState?.enabled && (!this.searchStatusState.firstSearchExecuted || this.facetState.values.length > 0);
|
|
26103
25843
|
}
|
|
26104
25844
|
render() {
|
|
26105
|
-
return lit.html`${when_js.when(this.shouldRenderFacet(), ()=>this.searchStatusState.firstSearchExecuted ? renderFacetContainer()(lit.html`
|
|
26106
|
-
${this.renderFacetHeader()} ${this.renderBody()}
|
|
26107
|
-
`) : renderFacetPlaceholder({
|
|
25845
|
+
return lit.html`${when_js.when(this.shouldRenderFacet(), ()=>this.searchStatusState.firstSearchExecuted ? renderFacetContainer()(lit.html` ${this.renderFacetHeader()} ${this.renderBody()} `) : renderFacetPlaceholder({
|
|
26108
25846
|
props: {
|
|
26109
25847
|
numberOfValues: this.numberOfValues,
|
|
26110
25848
|
isCollapsed: this.isCollapsed
|
|
@@ -26920,9 +26658,7 @@ let AtomicFacet$1 = class AtomicFacet extends lit.LitElement {
|
|
|
26920
26658
|
return !this.searchStatusState.hasError && this.facetState.enabled && (!this.searchStatusState.firstSearchExecuted || this.facetState.values.length > 0);
|
|
26921
26659
|
}
|
|
26922
26660
|
render() {
|
|
26923
|
-
return lit.html`${when_js.when(this.shouldRenderFacet(), ()=>this.searchStatusState.firstSearchExecuted ? renderFacetContainer()(lit.html`
|
|
26924
|
-
${this.renderFacetHeader()} ${this.renderBody()}
|
|
26925
|
-
`) : lit.html`<atomic-facet-placeholder
|
|
26661
|
+
return lit.html`${when_js.when(this.shouldRenderFacet(), ()=>this.searchStatusState.firstSearchExecuted ? renderFacetContainer()(lit.html` ${this.renderFacetHeader()} ${this.renderBody()} `) : lit.html`<atomic-facet-placeholder
|
|
26926
26662
|
value-count="${this.numberOfValues}"
|
|
26927
26663
|
></atomic-facet-placeholder>`)}`;
|
|
26928
26664
|
}
|
|
@@ -27581,9 +27317,7 @@ let AtomicResult$1 = class AtomicResult extends ChildrenUpdateCompleteMixin(lit.
|
|
|
27581
27317
|
if (!this.itemLayoutController.getLayout()) return lit.html`<div class=${resultComponentClass}></div>`;
|
|
27582
27318
|
return lit.html`
|
|
27583
27319
|
<div class=${resultComponentClass}>
|
|
27584
|
-
<div
|
|
27585
|
-
class="result-root ${this.itemLayoutController.getCombinedClasses().join(' ')}"
|
|
27586
|
-
>
|
|
27320
|
+
<div class="result-root ${this.itemLayoutController.getCombinedClasses().join(' ')}">
|
|
27587
27321
|
${unsafeHtml_js.unsafeHTML(this.getContentHTML())}
|
|
27588
27322
|
</div>
|
|
27589
27323
|
<div class="link-container">${unsafeHtml_js.unsafeHTML(this.getLinkHTML())}</div>
|
|
@@ -27948,18 +27682,18 @@ let AtomicFoldedResultList$1 = class AtomicFoldedResultList extends ChildrenUpda
|
|
|
27948
27682
|
}
|
|
27949
27683
|
renderList() {
|
|
27950
27684
|
return lit.html`${map_js.map(this.foldedResultListState.results, (collection, index)=>lit.html`${keyed_js.keyed(this.getResultId(collection), lit.html`<atomic-result
|
|
27951
|
-
|
|
27952
|
-
|
|
27953
|
-
|
|
27954
|
-
|
|
27955
|
-
|
|
27956
|
-
|
|
27957
|
-
|
|
27958
|
-
|
|
27959
|
-
|
|
27960
|
-
|
|
27961
|
-
|
|
27962
|
-
|
|
27685
|
+
part="outline"
|
|
27686
|
+
${ref_js.ref((element)=>element instanceof HTMLElement && this.resultListCommon.setNewResultRef(element, index))}
|
|
27687
|
+
.content=${this.getContent(collection)}
|
|
27688
|
+
.density=${this.density}
|
|
27689
|
+
.display=${this.display}
|
|
27690
|
+
.imageSize=${this.imageSize}
|
|
27691
|
+
.interactiveResult=${this.getInteractiveResult(collection)}
|
|
27692
|
+
.loadingFlag=${this.loadingFlag}
|
|
27693
|
+
.result=${collection}
|
|
27694
|
+
.renderingFunction=${this.itemRenderingFunction}
|
|
27695
|
+
.store=${this.bindings.store}
|
|
27696
|
+
></atomic-result>`)}`)}`;
|
|
27963
27697
|
}
|
|
27964
27698
|
get focusTarget() {
|
|
27965
27699
|
if (!this.nextNewResultTarget) this.nextNewResultTarget = new FocusTargetController(this, this.bindings);
|
|
@@ -29016,8 +28750,8 @@ let AtomicNoResults$1 = class AtomicNoResults extends lit.LitElement {
|
|
|
29016
28750
|
firstSearchExecuted: this.searchStatusState.firstSearchExecuted,
|
|
29017
28751
|
hasResults: this.searchStatusState.hasResults
|
|
29018
28752
|
}, ()=>renderNoItemsContainer()(lit.html`
|
|
29019
|
-
${renderMagnifyingGlass()} ${this.renderNoItems()}
|
|
29020
|
-
${this.
|
|
28753
|
+
${renderMagnifyingGlass()} ${this.renderNoItems()} ${this.renderSearchTips()}
|
|
28754
|
+
${this.renderCancelButton()}
|
|
29021
28755
|
`))}`;
|
|
29022
28756
|
}
|
|
29023
28757
|
renderNoItems() {
|
|
@@ -29169,9 +28903,7 @@ let AtomicNotifications$1 = class AtomicNotifications extends InitializeBindings
|
|
|
29169
28903
|
part="icon"
|
|
29170
28904
|
class="text-neutral-dark mr-6 h-7 w-7"
|
|
29171
28905
|
></atomic-icon>
|
|
29172
|
-
<span part="text" class="text-on-background text-base leading-5">
|
|
29173
|
-
${text}
|
|
29174
|
-
</span>
|
|
28906
|
+
<span part="text" class="text-on-background text-base leading-5"> ${text} </span>
|
|
29175
28907
|
</div>
|
|
29176
28908
|
`;
|
|
29177
28909
|
}
|
|
@@ -29976,13 +29708,7 @@ let AtomicPopover$1 = class AtomicPopover extends lit.LitElement {
|
|
|
29976
29708
|
class: buttonClassString
|
|
29977
29709
|
}
|
|
29978
29710
|
})(lit.html`
|
|
29979
|
-
<span
|
|
29980
|
-
title=${label}
|
|
29981
|
-
part="value-label"
|
|
29982
|
-
class=${multiClassMap(labelClasses)}
|
|
29983
|
-
>
|
|
29984
|
-
${label}
|
|
29985
|
-
</span>
|
|
29711
|
+
<span title=${label} part="value-label" class=${multiClassMap(labelClasses)}> ${label} </span>
|
|
29986
29712
|
<span part="value-count" class=${multiClassMap(countClasses)}>
|
|
29987
29713
|
${this.bindings.i18n.t('between-parentheses', {
|
|
29988
29714
|
text: count
|
|
@@ -30591,8 +30317,7 @@ let AtomicRatingFacet$1 = class AtomicRatingFacet extends lit.LitElement {
|
|
|
30591
30317
|
})}`;
|
|
30592
30318
|
if (!this.valuesToRender.length) return lit.nothing;
|
|
30593
30319
|
return renderFacetContainer()(lit.html`
|
|
30594
|
-
${this.renderHeader()}
|
|
30595
|
-
${when_js.when(!this.isCollapsed, ()=>this.renderValues())}
|
|
30320
|
+
${this.renderHeader()} ${when_js.when(!this.isCollapsed, ()=>this.renderValues())}
|
|
30596
30321
|
`);
|
|
30597
30322
|
}
|
|
30598
30323
|
constructor(){
|
|
@@ -30985,7 +30710,7 @@ let AtomicRatingRangeFacet$1 = class AtomicRatingRangeFacet extends lit.LitEleme
|
|
|
30985
30710
|
});
|
|
30986
30711
|
if (!this.valuesToRender.length) return lit.nothing;
|
|
30987
30712
|
return renderFacetContainer()(lit.html`${this.renderHeader()}
|
|
30988
|
-
|
|
30713
|
+
${when_js.when(!this.isCollapsed, ()=>this.renderValues())}`);
|
|
30989
30714
|
})}`;
|
|
30990
30715
|
}
|
|
30991
30716
|
constructor(){
|
|
@@ -31540,9 +31265,7 @@ let AtomicRelevanceInspector$1 = class AtomicRelevanceInspector extends lit.LitE
|
|
|
31540
31265
|
exportparts="footer"
|
|
31541
31266
|
>
|
|
31542
31267
|
<p slot="header">Open the relevance inspector</p>
|
|
31543
|
-
<p slot="body">
|
|
31544
|
-
The Relevance Inspector will open in the Coveo Administration Console.
|
|
31545
|
-
</p>
|
|
31268
|
+
<p slot="body">The Relevance Inspector will open in the Coveo Administration Console.</p>
|
|
31546
31269
|
<div slot="footer" class="flex w-full items-center justify-end">
|
|
31547
31270
|
${renderButton({
|
|
31548
31271
|
props: {
|
|
@@ -31629,16 +31352,12 @@ let AtomicResultBadge$1 = class AtomicResultBadge extends lit.LitElement {
|
|
|
31629
31352
|
`;
|
|
31630
31353
|
}
|
|
31631
31354
|
getTextContent() {
|
|
31632
|
-
if (void 0 !== this.field) return lit.html`<atomic-result-text
|
|
31633
|
-
.field=${this.field}
|
|
31634
|
-
></atomic-result-text>`;
|
|
31355
|
+
if (void 0 !== this.field) return lit.html`<atomic-result-text .field=${this.field}></atomic-result-text>`;
|
|
31635
31356
|
if (void 0 !== this.label) return lit.html`<atomic-text .value=${this.label}></atomic-text>`;
|
|
31636
31357
|
return lit.html`<slot></slot>`;
|
|
31637
31358
|
}
|
|
31638
31359
|
renderText() {
|
|
31639
|
-
return lit.html`<span part="result-badge-label"
|
|
31640
|
-
>${this.getTextContent()}</span
|
|
31641
|
-
>`;
|
|
31360
|
+
return lit.html`<span part="result-badge-label">${this.getTextContent()}</span>`;
|
|
31642
31361
|
}
|
|
31643
31362
|
renderBadge() {
|
|
31644
31363
|
return lit.html`
|
|
@@ -32277,12 +31996,7 @@ let AtomicResultHtml$1 = class AtomicResultHtml extends LightDomMixin(lit.LitEle
|
|
|
32277
31996
|
this.remove();
|
|
32278
31997
|
return lit.nothing;
|
|
32279
31998
|
}
|
|
32280
|
-
return lit.html`
|
|
32281
|
-
<atomic-html
|
|
32282
|
-
value=${resultValue}
|
|
32283
|
-
?sanitize=${this.sanitize}
|
|
32284
|
-
></atomic-html>
|
|
32285
|
-
`;
|
|
31999
|
+
return lit.html` <atomic-html value=${resultValue} ?sanitize=${this.sanitize}></atomic-html> `;
|
|
32286
32000
|
}
|
|
32287
32001
|
constructor(){
|
|
32288
32002
|
super(), this.sanitize = true, this.resultController = createResultContextController(this);
|
|
@@ -33955,9 +33669,7 @@ let AtomicResultMultiValueText$1 = class AtomicResultMultiValueText extends lit.
|
|
|
33955
33669
|
const kebabValue = titleToKebab(value);
|
|
33956
33670
|
return keyed_js.keyed(value, lit.html`
|
|
33957
33671
|
<li part="result-multi-value-text-value">
|
|
33958
|
-
<slot name=${`result-multi-value-text-value-${kebabValue}`}>
|
|
33959
|
-
${label}
|
|
33960
|
-
</slot>
|
|
33672
|
+
<slot name=${`result-multi-value-text-value-${kebabValue}`}> ${label} </slot>
|
|
33961
33673
|
</li>
|
|
33962
33674
|
`);
|
|
33963
33675
|
}
|
|
@@ -33972,11 +33684,9 @@ let AtomicResultMultiValueText$1 = class AtomicResultMultiValueText extends lit.
|
|
|
33972
33684
|
}
|
|
33973
33685
|
renderMoreLabel(value) {
|
|
33974
33686
|
return lit.html`
|
|
33975
|
-
<li part="result-multi-value-text-value-more"
|
|
33976
|
-
${this.bindings.i18n.t('n-more', {
|
|
33687
|
+
<li part="result-multi-value-text-value-more">${this.bindings.i18n.t('n-more', {
|
|
33977
33688
|
value
|
|
33978
|
-
})}
|
|
33979
|
-
</li>
|
|
33689
|
+
})}</li>
|
|
33980
33690
|
`;
|
|
33981
33691
|
}
|
|
33982
33692
|
renderListItems(values) {
|
|
@@ -35512,19 +35222,19 @@ let AtomicSearchBoxInstantResults$1 = class AtomicSearchBoxInstantResults extend
|
|
|
35512
35222
|
const partialItem = getPartialInstantItemElement(this.bindings.i18n, 'instant-results-suggestion-label', this.ariaLabelGenerator?.(this.bindings, result) || result.title, result.uniqueId);
|
|
35513
35223
|
const key = `instant-result-${encodeForDomAttribute(result.uniqueId)}`;
|
|
35514
35224
|
const template = lit.html`${keyed_js.keyed(key, lit.html`<atomic-result
|
|
35515
|
-
|
|
35516
|
-
|
|
35517
|
-
|
|
35225
|
+
part="outline"
|
|
35226
|
+
.result=${result}
|
|
35227
|
+
.interactiveResult=${headless.buildInteractiveInstantResult(this.bindings.engine, {
|
|
35518
35228
|
options: {
|
|
35519
35229
|
result
|
|
35520
35230
|
}
|
|
35521
35231
|
})}
|
|
35522
|
-
|
|
35523
|
-
|
|
35524
|
-
|
|
35525
|
-
|
|
35526
|
-
|
|
35527
|
-
|
|
35232
|
+
.display=${this.display}
|
|
35233
|
+
.density=${this.density}
|
|
35234
|
+
.imageSize=${this.imageSize}
|
|
35235
|
+
.content=${this.itemTemplateProvider.getTemplateContent(result)}
|
|
35236
|
+
.renderingFunction=${this.itemRenderingFunction}
|
|
35237
|
+
></atomic-result>`)}`;
|
|
35528
35238
|
const container = document.createElement('div');
|
|
35529
35239
|
lit.render(template, container);
|
|
35530
35240
|
const resultElement = container.firstElementChild;
|
|
@@ -36157,11 +35867,7 @@ AtomicSearchInterface$1 = _ts_decorate$c([
|
|
|
36157
35867
|
|
|
36158
35868
|
const styles$4 = lit.css`.atomic-modal-opened{overflow-y:hidden}atomic-layout-section[section=search]{grid-area:atomic-section-search}atomic-layout-section[section=facets]{grid-area:atomic-section-facets}atomic-layout-section[section=main]{grid-area:atomic-section-main}atomic-layout-section[section=status]{grid-area:atomic-section-status}atomic-layout-section[section=pagination]{grid-area:atomic-section-pagination}atomic-search-layout{display:none;grid-template-areas:". atomic-section-search ." ". atomic-section-main .";grid-template-columns:var(--atomic-layout-spacing-x) minmax(0,1fr) var(
|
|
36159
35869
|
--atomic-layout-spacing-x
|
|
36160
|
-
);height:100%;width:100%;atomic-layout-section[section=search]{justify-self:center;margin:var(--atomic-layout-spacing-y) 0;max-width:var(--atomic-layout-max-search-box-input-width,678px);width:100%;atomic-search-box{&::part(suggestions-double-list){max-width:var(
|
|
36161
|
-
--atomic-layout-max-search-box-double-suggestions-width,800px
|
|
36162
|
-
);width:125%}&::part(suggestions-left){flex-basis:var(
|
|
36163
|
-
--atomic-layout-search-box-left-suggestions-width,30%
|
|
36164
|
-
)}&::part(suggestions-right){flex-basis:calc(100% - var(--atomic-layout-search-box-left-suggestions-width, 30%))}}}atomic-layout-section[section=facets]{display:none;& *{margin-bottom:var(--atomic-layout-spacing-y)}}atomic-layout-section[section=main]{margin-bottom:var(--atomic-layout-spacing-y)}atomic-layout-section[section=horizontal-facets]{display:flex;flex-wrap:wrap;margin-bottom:var(--atomic-layout-spacing-y);row-gap:.5rem;&>*{max-width:100%}&>atomic-popover,&>atomic-segmented-facet{margin-right:.5rem}&>atomic-popover{display:none}}atomic-layout-section[section=status]{display:grid;grid-template-areas:"atomic-breadbox atomic-breadbox" "atomic-query-summary atomic-sort" "atomic-did-you-mean atomic-did-you-mean" "atomic-notifications atomic-notifications";justify-content:space-between;&>*{margin-bottom:var(--atomic-layout-spacing-y)}atomic-breadbox{grid-area:atomic-breadbox}atomic-query-summary{align-self:center;grid-area:atomic-query-summary;overflow:hidden}atomic-sort-dropdown{justify-self:end}atomic-refine-toggle,atomic-sort-dropdown{grid-area:atomic-sort}atomic-did-you-mean{grid-area:atomic-did-you-mean}atomic-notifications{grid-area:atomic-notifications}}atomic-layout-section[section=results]{atomic-smart-snippet,atomic-smart-snippet-suggestions{margin-bottom:1.5rem}}atomic-layout-section[section=pagination]{align-items:center;display:flex;flex-direction:column;justify-content:space-between;atomic-load-more-results{width:100%}&:has(:only-child){justify-content:center}&>*{margin-top:var(--atomic-layout-spacing-y)}@media only screen and (min-width:50rem){flex-direction:row}}}`;
|
|
35870
|
+
);height:100%;width:100%;atomic-layout-section[section=search]{justify-self:center;margin:var(--atomic-layout-spacing-y) 0;max-width:var(--atomic-layout-max-search-box-input-width,678px);width:100%;atomic-search-box{&::part(suggestions-double-list){max-width:var(--atomic-layout-max-search-box-double-suggestions-width,800px);width:125%}&::part(suggestions-left){flex-basis:var(--atomic-layout-search-box-left-suggestions-width,30%)}&::part(suggestions-right){flex-basis:calc(100% - var(--atomic-layout-search-box-left-suggestions-width, 30%))}}}atomic-layout-section[section=facets]{display:none;& *{margin-bottom:var(--atomic-layout-spacing-y)}}atomic-layout-section[section=main]{margin-bottom:var(--atomic-layout-spacing-y)}atomic-layout-section[section=horizontal-facets]{display:flex;flex-wrap:wrap;margin-bottom:var(--atomic-layout-spacing-y);row-gap:.5rem;&>*{max-width:100%}&>atomic-popover,&>atomic-segmented-facet{margin-right:.5rem}&>atomic-popover{display:none}}atomic-layout-section[section=status]{display:grid;grid-template-areas:"atomic-breadbox atomic-breadbox" "atomic-query-summary atomic-sort" "atomic-did-you-mean atomic-did-you-mean" "atomic-notifications atomic-notifications";justify-content:space-between;&>*{margin-bottom:var(--atomic-layout-spacing-y)}atomic-breadbox{grid-area:atomic-breadbox}atomic-query-summary{align-self:center;grid-area:atomic-query-summary;overflow:hidden}atomic-sort-dropdown{justify-self:end}atomic-refine-toggle,atomic-sort-dropdown{grid-area:atomic-sort}atomic-did-you-mean{grid-area:atomic-did-you-mean}atomic-notifications{grid-area:atomic-notifications}}atomic-layout-section[section=results]{atomic-smart-snippet,atomic-smart-snippet-suggestions{margin-bottom:1.5rem}}atomic-layout-section[section=pagination]{align-items:center;display:flex;flex-direction:column;justify-content:space-between;atomic-load-more-results{width:100%}&:has(:only-child){justify-content:center}&>*{margin-top:var(--atomic-layout-spacing-y)}@media only screen and (min-width:50rem){flex-direction:row}}}`;
|
|
36165
35871
|
var atomic_search_layout_tw_css = styles$4;
|
|
36166
35872
|
|
|
36167
35873
|
function _ts_decorate$b(decorators, target, key, desc) {
|
|
@@ -36261,11 +35967,7 @@ const renderFacetSegmentedValue = ({ props })=>{
|
|
|
36261
35967
|
>
|
|
36262
35968
|
${props.displayValue}
|
|
36263
35969
|
</span>
|
|
36264
|
-
<span
|
|
36265
|
-
title=${count}
|
|
36266
|
-
part="value-count"
|
|
36267
|
-
class=${multiClassMap(countClasses)}
|
|
36268
|
-
>
|
|
35970
|
+
<span title=${count} part="value-count" class=${multiClassMap(countClasses)}>
|
|
36269
35971
|
${props.i18n.t('between-parentheses', {
|
|
36270
35972
|
text: compactCount
|
|
36271
35973
|
})}
|
|
@@ -36311,10 +36013,7 @@ let AtomicSegmentedFacet$1 = class AtomicSegmentedFacet extends lit.LitElement {
|
|
|
36311
36013
|
`;
|
|
36312
36014
|
if (!this.facetState.values.length) return lit.html``;
|
|
36313
36015
|
return lit.html`
|
|
36314
|
-
<div
|
|
36315
|
-
part="segmented-container"
|
|
36316
|
-
class="mr-2 flex h-10 items-center whitespace-nowrap"
|
|
36317
|
-
>
|
|
36016
|
+
<div part="segmented-container" class="mr-2 flex h-10 items-center whitespace-nowrap">
|
|
36318
36017
|
${this.renderLabel()} ${this.renderValues()}
|
|
36319
36018
|
</div>
|
|
36320
36019
|
`;
|
|
@@ -36597,10 +36296,7 @@ let AtomicSegmentedFacetScrollable$1 = class AtomicSegmentedFacetScrollable exte
|
|
|
36597
36296
|
const hiddenClass = hide ? 'invisible opacity-0' : '';
|
|
36598
36297
|
const transitionClass = 'transition-opacity transition-[visibility] ease-in-out duration-300';
|
|
36599
36298
|
return lit.html`
|
|
36600
|
-
<div
|
|
36601
|
-
part="${direction}-arrow-wrapper"
|
|
36602
|
-
class="${hiddenClass} ${transitionClass}"
|
|
36603
|
-
>
|
|
36299
|
+
<div part="${direction}-arrow-wrapper" class="${hiddenClass} ${transitionClass}">
|
|
36604
36300
|
${renderButton({
|
|
36605
36301
|
props: {
|
|
36606
36302
|
style: 'square-neutral',
|
|
@@ -38423,7 +38119,7 @@ const FoldedResultListWrapper = (props) => {
|
|
|
38423
38119
|
return root.innerHTML;
|
|
38424
38120
|
});
|
|
38425
38121
|
}, [template]);
|
|
38426
|
-
return
|
|
38122
|
+
return React.createElement(AtomicFoldedResultList, { ref: foldedResultListRef, ...otherProps });
|
|
38427
38123
|
};
|
|
38428
38124
|
|
|
38429
38125
|
/**
|