@coveo/atomic 3.61.5 → 3.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +189 -20
- package/dist/cjs/components/commerce/atomic-commerce-category-facet/atomic-commerce-category-facet.cjs +19 -7
- package/dist/cjs/components/commerce/atomic-commerce-interface/atomic-commerce-interface.cjs +25 -4
- package/dist/cjs/components/commerce/atomic-commerce-pager/atomic-commerce-pager.cjs +3 -2
- package/dist/cjs/components/commerce/atomic-commerce-products-per-page/atomic-commerce-products-per-page.cjs +1 -1
- package/dist/cjs/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.cjs +25 -4
- package/dist/cjs/components/common/facets/category-facet/active-value.cjs +69 -0
- package/dist/cjs/components/common/facets/category-facet/selected-value.cjs +78 -0
- package/dist/cjs/components/common/facets/category-facet/value-link.cjs +5 -6
- package/dist/cjs/components/common/interface/i18n.cjs +6 -2
- package/dist/cjs/components/common/interface/interface-controller.cjs +8 -4
- package/dist/cjs/components/common/pager/pager-fit-controller.cjs +72 -0
- package/dist/cjs/components/insight/atomic-insight-pager/atomic-insight-pager.cjs +3 -2
- package/dist/cjs/components/search/atomic-category-facet/atomic-category-facet.cjs +19 -8
- package/dist/cjs/components/search/atomic-pager/atomic-pager.cjs +3 -2
- package/dist/cjs/components/search/atomic-result-date/atomic-result-date.cjs +11 -16
- package/dist/cjs/components/search/atomic-results-per-page/atomic-results-per-page.cjs +1 -1
- package/dist/cjs/generated/dayjs-locales-data.cjs +43 -43
- package/dist/cjs/global/environment.cjs +1 -1
- package/dist/cjs/utils/dayjs-locales.cjs +23 -9
- package/dist/cjs/utils/field-utils.cjs +5 -1
- package/dist/cjs/{components/common/facets/category-facet/parent-value-link.cjs → utils/locale-utils.cjs} +14 -11
- package/dist/cjs/versions.cjs +1 -1
- package/dist/esm/components/commerce/atomic-commerce-category-facet/atomic-commerce-category-facet.js +19 -7
- package/dist/esm/components/commerce/atomic-commerce-interface/atomic-commerce-interface.js +25 -4
- package/dist/esm/components/commerce/atomic-commerce-pager/atomic-commerce-pager.js +3 -2
- package/dist/esm/components/commerce/atomic-commerce-products-per-page/atomic-commerce-products-per-page.js +1 -1
- package/dist/esm/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.js +25 -4
- package/dist/esm/components/common/facets/category-facet/active-value.js +31 -0
- package/dist/esm/components/common/facets/category-facet/selected-value.js +30 -0
- package/dist/esm/components/common/facets/category-facet/value-link.js +5 -6
- package/dist/esm/components/common/interface/i18n.js +6 -2
- package/dist/esm/components/common/interface/interface-controller.js +8 -4
- package/dist/esm/components/common/pager/pager-fit-controller.js +34 -0
- package/dist/esm/components/insight/atomic-insight-pager/atomic-insight-pager.js +3 -2
- package/dist/esm/components/search/atomic-category-facet/atomic-category-facet.js +19 -8
- package/dist/esm/components/search/atomic-pager/atomic-pager.js +3 -2
- package/dist/esm/components/search/atomic-result-date/atomic-result-date.js +10 -15
- package/dist/esm/components/search/atomic-results-per-page/atomic-results-per-page.js +1 -1
- package/dist/esm/generated/dayjs-locales-data.js +43 -43
- package/dist/esm/global/environment.js +1 -1
- package/dist/esm/utils/dayjs-locales.js +23 -9
- package/dist/esm/utils/field-utils.js +5 -1
- package/dist/esm/utils/locale-utils.js +12 -0
- package/dist/esm/versions.js +1 -1
- package/dist/lang/cs.json +1 -1
- package/dist/lang/da.json +1 -1
- package/dist/lang/de.json +1 -1
- package/dist/lang/el.json +1 -1
- package/dist/lang/es.json +1 -1
- package/dist/lang/fi.json +1 -1
- package/dist/lang/hu.json +1 -1
- package/dist/lang/id.json +1 -1
- package/dist/lang/it.json +1 -1
- package/dist/lang/ja.json +1 -1
- package/dist/lang/ko.json +1 -1
- package/dist/lang/nl.json +1 -1
- package/dist/lang/no.json +1 -1
- package/dist/lang/pl.json +1 -1
- package/dist/lang/pt-BR.json +1 -1
- package/dist/lang/pt.json +1 -1
- package/dist/lang/ru.json +1 -1
- package/dist/lang/sv.json +1 -1
- package/dist/lang/th.json +1 -1
- package/dist/lang/tr.json +1 -1
- package/dist/lang/zh-CN.json +1 -1
- package/dist/lang/zh-TW.json +1 -1
- package/dist/lang/zh.json +1 -1
- package/dist/types/components/commerce/atomic-commerce-category-facet/atomic-commerce-category-facet.d.ts +7 -1
- package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts +17 -0
- package/dist/types/components/commerce/atomic-commerce-pager/atomic-commerce-pager.d.ts +1 -0
- package/dist/types/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.d.ts +13 -0
- package/dist/types/components/common/facets/category-facet/active-value.d.ts +19 -0
- package/dist/types/components/common/facets/category-facet/selected-value.d.ts +22 -0
- package/dist/types/components/common/facets/category-facet/value-link.d.ts +0 -1
- package/dist/types/components/common/interface/i18n.d.ts +9 -5
- package/dist/types/components/common/pager/pager-fit-controller.d.ts +21 -0
- package/dist/types/components/common/suggestions/suggestion-manager.d.ts +1 -1
- package/dist/types/components/common/suggestions/suggestions-types.d.ts +1 -1
- package/dist/types/components/insight/atomic-insight-interface/atomic-insight-interface.d.ts +4 -0
- package/dist/types/components/insight/atomic-insight-pager/atomic-insight-pager.d.ts +1 -0
- package/dist/types/components/recommendations/atomic-recs-interface/atomic-recs-interface.d.ts +4 -0
- package/dist/types/components/search/atomic-category-facet/atomic-category-facet.d.ts +8 -2
- package/dist/types/components/search/atomic-pager/atomic-pager.d.ts +1 -0
- package/dist/types/components/search/atomic-result-date/atomic-result-date.d.ts +3 -0
- package/dist/types/components/search/atomic-search-interface/atomic-search-interface.d.ts +4 -0
- package/dist/types/utils/dayjs-locales.d.ts +1 -1
- package/dist/types/utils/field-utils.d.ts +1 -1
- package/dist/types/utils/locale-utils.d.ts +7 -0
- package/package.json +4 -4
- package/dist/esm/components/common/facets/category-facet/parent-value-link.js +0 -9
- package/dist/types/components/common/facets/category-facet/parent-value-link.d.ts +0 -6
package/dist/lang/zh.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"search":"搜索","no-title":"无标题","search-ellipsis":"搜索...","left":"左","right":"右","search-box":"执行搜索的输入字段。插入查询。要发送,请按Enter。","search-box-with-suggestions":"带建议的搜索栏。在有焦点的情况下开始导航建议,按下方向键。按 Enter 发送。","search-box-with-suggestions-macos":"带有建议的搜索栏。建议可能在此字段下可用。要发送,请按Enter。","search-box-with-suggestions-keyboardless":"带建议的搜索框。建议可能在此字段下方。要发送,请按Enter。","search-suggestions-single-list":"搜索建议。要在建议之间导航,请按上箭头或下箭头。要选择建议,请按 Enter。","search-suggestions-double-list":"两个搜索框建议列表并排显示。要在建议之间导航,请按上箭头或下箭头。要在两个列表之间切换,请按左箭头或右箭头。要选择要建议,请按Enter。","search-suggestion-single-list":"{{label}}。{{position}} / {{count}}。","search-suggestion-double-list":"{{label}}。{{position}} of {{count}}。在{{side}}列表中。","search-suggestion-button":"{{label}}。按钮","search-disabled":"输入至少{{length}}个字符的查询以启用搜索。","query-suggestion-label":"推荐的搜索查询:“{{query}}”","recent-query-suggestion-label":"最近搜索 \"{{query}}\"","instant-products-suggestion-label":"{{title}},即时产品","instant-results-suggestion-label":"{{title}},即时结果","facet-search-input":"搜索","facet-search":"在 {{label}} 分面中搜索值","facet-value":"包含 {{value}} 的包含过滤器; {{formattedCount}} 结果","facet-value_other":"包含 {{value}} 的筛选器; {{formattedCount}} 个结果","facet-value-exclude":"排除过滤器在 {{value}}; {{formattedCount}}个结果","facet-value-exclude_other":"排除过滤器在 {{value}}; {{formattedCount}}个结果","remove-inclusion-filter-on":"移除{{value}}包含过滤器","remove-exclusion-filter-on":"删除{{value}}上的排除过滤器","query-suggestion-list":"搜索建议。选择一个进行搜索。","tab-search":"在{{label}}选项卡中搜索值。","clear":"晴朗","filter-removed":"筛选器已移除","clear-searchbox":"清除搜索框","search-box-cleared":"搜索已清除","recent-search-cleared":"最近的搜索已清除","all-categories":"所有类别","show-all-products":"查看所有产品","show-all-results":"查看所有结果","show-more":"显示较多的值","show-less":"显示较少的值","show-less-facet-values":"显示 {{label}} 特征的较少值","show-more-facet-values":"显示{{label}}属性的更多值","facet-values":"{{label}} 方面的取值","facet-search-results":"在{{label}}维度中找到{{query}}的值","facet-search-results-count":"在{{label}}分类中找到{{count}}个值","facet-search-results-count_other":"{{count}}个值在{{label}}分类中找到","pagination":"分页","next":"下一页","previous":"上一页","page-number":"第{{pageNumber}}页","no-values-found":"未找到任何值。","products-per-page":"每一页的产品","results-per-page":"每一页的结果","sort":"排序","filters":"过滤器","sort-by":"排序方式","relevance":"关联","most-recent":"最新","clear-filters":"清除筛选器","clear-filters_other":"清除{{count}}个筛选器","clear-filters-for-facet":"清除 {{label}} 篩選條件的 {{count}} 個篩選","clear-filters-for-facet_other":"清除{{label}}特性的{{count}}个筛选器","collapse-facet":"收起{{label}}筛选器","expand-facet":"展开{{label}}筛选器","showing-products-of":"产品 {{first}} / {{total}}","showing-results-of":"结果数 {{first}},总数 {{total}}","showing-products-of_other":"产品 {{first}}-{{last}} / {{total}}","showing-results-of_other":"结果数 {{first}}-{{last}},总数 {{total}}","showing-products-of-with-query":"{{query}}的产品{{first}}共{{total}}","showing-results-of-with-query":"结果数 {{first}},总数 {{total}}, 搜索 {{query}}","showing-products-of-with-query_other":"{{query}}的{{total}}的产品{{first}}-{{last}}","showing-results-of-with-query_other":"结果数 {{first}}-{{last}},总数 {{total}}, 搜索 {{query}}","showing-products-of-load-more":"正在显示{{total}}个产品中的{{last}}个","showing-results-of-load-more":"显示{{total}}个结果中的第{{last}}个","load-more-products":"加载更多产品","load-more-results":"加载更多结果","load-all-results":"加载所有结果","collapse-results":"折叠结果","no-documents-related":"没有与此相关的文件。","in-seconds":"用时 {{count}} 秒","in-seconds_other":"用时 {{count}} 秒","no-results-for":"没有找到与 {{query}} 相关的结果","no-results-for-did-you-mean":"没有找到与 {{query}} 相关的结果","showing-products-for":"显示{{query}}的产品","showing-results-for":"显示{{query}}的结果","search-instead-for":"查找替代{{query}}","search-tips":"您可以尝试使用不同的关键字,取消选择过滤器或检查拼写错误。","no-results":"没有结果","more-matches-for":"{{query}}的更多匹配","no-matches-found-for":"没有发现匹配项{{query}}","recent-searches":"最新搜索","clear-recent-searches":"清除最近搜索","cancel-last-action":"取消最后一个动作","cancel":"取消","check-spelling":"检查关键字的拼写。","try-using-fewer-keywords":"尝试使用更少、更常用或不同的关键字。","select-fewer-filters":"选择较少的筛选条件以扩大您的搜索范围。","author":"作者","file-type":"文件类型","language":"语言","source":"源","printable-uri":"结果源路径","collapsed-uri-parts":"折叠的URI部分","disconnected":"无权访问。","check-your-connection":"无法将您的查询发送到以下URL:{{url}}。请验证您的连接。","no-endpoints":"您的组织 {{org}} 没有可用的内容。","invalid-token":"确保令牌是有效的。","add-sources":"添加内容来源或等待您新建的来源完成索引。","coveo-online-help":"Coveo 在线帮助","cannot-access":"您的组织{{org}}无法访问。","something-went-wrong":"服务器出现了错误。","if-problem-persists":"如果问题仍然存在,请联系管理员。","more-info":"更多信息","clear-all-filters":"清除所有筛选条件","n-more":"{{value}} 更多...","show-n-more-filters":"显示 {{value}} 个更多筛选器","query-auto-corrected-to":"查询自动更正为 {{query}}","did-you-mean":"您要找的是不是: {{query}}","close":"关闭","no-label":"无标签","to":"{{- start}} 到 {{- end}}","min":"最小值","max":"马克斯","apply":"应用","yes":"是","no":"不","popover":"{{label}} 方面的弹出式菜单","number-input-minimum":"输入{{label}}属性的最小数字值","number-input-maximum":"输入{{label}}属相的最大数字值","number-input-apply":"为 {{label}} 属性应用自定义数字值","end":"结束","start":"开始","date-input-start":"为 {{label}} 方面输入开始日期","date-input-end":"输入{{label}}特征的结束日期","date-input-apply":"为{{label}}推出自定义的起止日期","date-format-placeholder":"年年年年-月月-日日","past-minute":"一分钟前","past-minute_other":"{{count}}分钟前","past-hour":"过去小时","past-hour_other":"{{count}}小时前","past-day":"昨天","past-day_other":"过去{{count}}天","past-week":"上周","past-week_other":"过去{{count}}周","past-month":"上个月","past-month_other":"过去{{count}}个月","past-quarter":"过去的季度","past-quarter_other":"{{count}}个季度前","past-year":"去年","past-year_other":"{{count}}年前","next-minute":"下一分钟","next-minute_other":"接下来{{count}}分钟","next-hour":"下一个小时","next-hour_other":"接下来{{count}}小时","next-day":"明天","next-day_other":"接下来 {{count}} 天","next-week":"下周","next-week_other":"接下来{{count}}周","next-month":"下个月","next-month_other":"接下来{{count}}个月","next-quarter":"下个季度","next-quarter_other":"下 {{count}} 季度","next-year":"明年","next-year_other":"未来{{count}}年","in":"裡面","under":"{{parent}} 下 {{child}}","preview-result":"预览结果","preview-modal-title":"结果预览","sort-and-filter":"排序和过滤","view-products":"查看产品","view-results":"查看结果","organization-is-paused":"由于不活动,您的 {{org}} 组织已暂停,目前无法搜索。","organization-will-resume":"您的组织正在恢复,并将很快可用。","rating":"评分","and-up":"& 向上","only":"只","loading-products":"正在加载新产品","loading-results":"正在加载新结果","query-suggestions-available-no-query":"有{{count}}个搜索建议可用。","query-suggestions-available-no-query_other":"有{{count}}个搜索建议可用。","query-suggestions-available":"有{{count}}个搜索建议可用:{{query}}。","query-suggestions-available_other":"有{{count}}个搜索建议可用:{{query}}。","query-suggestions-unavailable":"没有搜索建议。","stars":"{{max}}颗星中的一颗","stars_other":"{{max}}星,{{count}}星","stars-only":"仅 {{count}} / {{count}} 颗星","stars-range":"{{count}} 颗星中 {{value}} 颗及以上的","with-colon":"{{text}}:","between-quotations":"“{{text}}”","between-parentheses":"({{text}})","notifications":"通知","notification-n":"通知 {{n}}: {{text}}","smart-snippet":"您的问题的潜在答案","smart-snippet-source":"答案来源","smart-snippet-feedback-inquiry":"这些信息是否有用?","smart-snippet-feedback-thanks":"感谢您的反馈!","smart-snippet-feedback-explain-why":"解释为什么","smart-snippet-feedback-select-reason":"选择原因","details":"詳細信息","feedback-send":"发送","smart-snippet-feedback-reason-does-not-answer":"这根本没有回答我的问题","smart-snippet-feedback-reason-partially-answers":"这只是部分地回答了我的问题","smart-snippet-feedback-reason-was-not-a-question":"我的请求并非意图被视为问题","smart-snippet-feedback-reason-other":"其他","smart-snippet-people-also-ask":"常见问题","edit-insight":"编辑洞察","insight-history":"Insight操作历史","insight-related-cases":"与此案件相关的见解","attach-to-case":"附加到此案件","detach-from-case":"从案件中分离","result-is-attached":"结果已附加到此案件","viewed-by-customer":"客户查看","full-search":"访问完整搜索的按钮","calendar-last-day":"[昨天]","calendar-same-day":"[今天]","calendar-next-day":"[明天]","calendar-next-week":"下周","calendar-last-week":"[上] dddd","approx_year":"大约一年","approx_year_other":"大约{{count}}年前","approx_month":"大约一个月","approx_month_other":"大约{{count}}个月","approx_day":"大约一天","day_other":"约{{count}} 天左右","quickview":"快速查看","keywords-highlight":"關鍵詞突出顯示","minimize":"最小化","quickview-add-word":"添加亮点","quickview-remove-word":"清除高亮","quickview-next":"下一个快速查看","quickview-previous":"上一次快速查看","quickview-toggle-navigation":"切换关键字导航","quickview-navigate-keywords":"在{{keyword}}的{{occurrences}}个出现之间导航","quickview-loading":"正在加载新快速查看","quickview-loaded":"快速查看 {{title}} 结果已加载。共 {{last}} 条结果中的第 {{first}} 条可用。","more":"更多","tab-popover":"弹出式菜单以获取更多选项卡","generating-answer":"生成答案","answer-generated":"生成的答案: {{answer}}","answer-could-not-be-generated":"无法生成答案","generated-answer-hidden":"生成的答案被隐藏","generated-answer-title":"生成的答案","generated-answer-toggle-on":"生成的答案打开","generated-answer-toggle-off":"生成的答案关闭","this-answer-was-helpful":"有用","this-answer-was-not-helpful":"没什么帮助","generated-answer-loading":"寻找答案中...","retry":"重试","retry-stream-message":"哎呀!在生成答案时出错了。","generated-answer-feedback-instructions":"告诉我们生成的答案为什么没有帮助。","irrelevant":"不相關","not-accurate":"不准确","out-of-date":"过时","harmful":"有害的","other":"其他","add-details":"添加详细信息","modal-done":"完成","citations":"引用","copy-generated-answer":"复制答案","generated-answer-copied":"已复制!","failed-to-copy-generated-answer":"无法复制答案","generated-answer-disclaimer":"生成的內容可能包含錯誤。驗證重要信息。","available-in":"可用于:","image-alt-fallback-multiple":"第{{count}}张图片,共{{max}}张,适用于{{itemName}}","image-alt-fallback":"{{itemName}}的图片","image-not-found-alt":"{{itemName}} 无可用图片。","image-gallery":"{{itemName}} 的图片库","feedback-modal-title":"帮助我们提高!","skip":"跳过","generated-answer-feedback-link":"链接到正确的答案","generated-answer-additional-notes":"附加说明","feedback-hallucination-free":"答案是否没有幻觉内容?","feedback-readable":"答案可读吗?","required-fields-error":"该字段是必填项。","generated-answer-feedback-success":"谢谢!您的反馈将帮助我们改善生成的答案。","additional-feedback":"提供额外反馈","answer-evaluation":"答复评估","generated-answer-send-feedback":"发送反馈","add-notes":"添加笔记","unknown":"不确定","feedback-correct-topic":"答案是关于正确的主题吗?","feedback-documented":"问题可以通过文档得到解答吗?","required-fields":"必填字段","ticket-created":"门票已创建","more-actions-in-session":"在此会话中{{count}}个更多的动作","more-actions-in-session_other":"此会话中有{{count}}个更多的操作","user-actions":"用户操作","no-user-actions-available":"没有可用的用户操作","no-user-actions-associated-with-params":"没有与用户id相关联的用户操作,或者案例太老无法检测到相关操作。","hide-preceding-sessions":"隐藏前面的会话","show-preceding-sessions":"显示前面的会议","hide-following-sessions":"隐藏以下会话","show-following-sessions":"显示以下会议","empty-search":"空的搜索","no-products":"没有产品","no-products-for":"我们找不到任何产品为{{query}}","results-loaded":"结果已加载。","all-results-loaded":"所有结果均已加载。","pager-page-loaded":"第{{page}}页已加载","refine-modal-content":"筛选和排序选项","user-actions-content":"用户操作时间线","ask-follow-up":"提出一个后续问题","show-previous-questions":"显示{{count}}个前一个问题","submit-follow-up":"提交后续问题","follow-up-input-too-long":"您的问题太长了。请使用 {{max}} 个字符或更少。","generated-answer-error-generic":"生成答案时出错。请稍后再试。","generated-answer-cannot-generate-answer":"我无法找到那个问题的答案。尝试重新表述您的后续问题或检查下面的相关结果。","ipx-body-content":"内容区域","agent-generation-step-search":"正在搜索知识库…","agent-generation-step-search-completed":"知识库已搜索","agent-generation-step-search-query":"正在搜索 {{query}}…","agent-generation-step-search-query-completed":"已搜索 {{query}}","agent-generation-step-think":"正在思考...","agent-generation-step-analyzing-question":"正在分析您的问题…","agent-generation-step-analyzing-question-completed":"问题已分析","agent-generation-step-answering":"正在生成答案…","agent-generation-step-answering-completed":"答案已生成","agent-generation-step-analyzing-results":"正在分析结果…","agent-generation-step-analyzing-results-completed":"结果已分析","collapse":"折叠","generated-answer-error-turn-limit-reached":"会话轮次限制已达。请开始新的会话。","tab-list":"内容类型标签","generated-answer-debug-mode-on":"调试模式已开启","generated-answer-conversation-id":"会话ID:{{conversationId}}","generated-answer-copy-conversation-id":"复制会话ID"}
|
|
1
|
+
{"search":"搜索","no-title":"无标题","search-ellipsis":"搜索...","left":"左","right":"右","search-box":"执行搜索的输入字段。插入查询。要发送,请按Enter。","search-box-with-suggestions":"带建议的搜索栏。在有焦点的情况下开始导航建议,按下方向键。按 Enter 发送。","search-box-with-suggestions-macos":"带有建议的搜索栏。建议可能在此字段下可用。要发送,请按Enter。","search-box-with-suggestions-keyboardless":"带建议的搜索框。建议可能在此字段下方。要发送,请按Enter。","search-suggestions-single-list":"搜索建议。要在建议之间导航,请按上箭头或下箭头。要选择建议,请按 Enter。","search-suggestions-double-list":"两个搜索框建议列表并排显示。要在建议之间导航,请按上箭头或下箭头。要在两个列表之间切换,请按左箭头或右箭头。要选择要建议,请按Enter。","search-suggestion-single-list":"{{label}}。{{position}} / {{count}}。","search-suggestion-double-list":"{{label}}。{{position}} of {{count}}。在{{side}}列表中。","search-suggestion-button":"{{label}}。按钮","search-disabled":"输入至少{{length}}个字符的查询以启用搜索。","query-suggestion-label":"推荐的搜索查询:“{{query}}”","recent-query-suggestion-label":"最近搜索 \"{{query}}\"","instant-products-suggestion-label":"{{title}},即时产品","instant-results-suggestion-label":"{{title}},即时结果","facet-search-input":"搜索","facet-search":"在 {{label}} 分面中搜索值","facet-value":"包含 {{value}} 的包含过滤器; {{formattedCount}} 结果","facet-value_other":"包含 {{value}} 的筛选器; {{formattedCount}} 个结果","facet-value-exclude":"排除过滤器在 {{value}}; {{formattedCount}}个结果","facet-value-exclude_other":"排除过滤器在 {{value}}; {{formattedCount}}个结果","remove-inclusion-filter-on":"移除{{value}}包含过滤器","remove-exclusion-filter-on":"删除{{value}}上的排除过滤器","query-suggestion-list":"搜索建议。选择一个进行搜索。","tab-search":"在{{label}}选项卡中搜索值。","clear":"晴朗","filter-removed":"筛选器已移除","clear-searchbox":"清除搜索框","search-box-cleared":"搜索已清除","recent-search-cleared":"最近的搜索已清除","all-categories":"所有类别","show-all-products":"查看所有产品","show-all-results":"查看所有结果","show-more":"显示较多的值","show-less":"显示较少的值","show-less-facet-values":"显示 {{label}} 特征的较少值","show-more-facet-values":"显示{{label}}属性的更多值","facet-values":"{{label}} 方面的取值","facet-search-results":"在{{label}}维度中找到{{query}}的值","facet-search-results-count":"在{{label}}分类中找到{{count}}个值","facet-search-results-count_other":"{{count}}个值在{{label}}分类中找到","pagination":"分页","next":"下一页","previous":"上一页","page-number":"第{{pageNumber}}页","no-values-found":"未找到任何值。","products-per-page":"每一页的产品","results-per-page":"每一页的结果","sort":"排序","filters":"过滤器","sort-by":"排序方式","relevance":"关联","most-recent":"最新","clear-filters":"清除筛选器","clear-filters_other":"清除{{count}}个筛选器","clear-filters-for-facet":"清除 {{label}} 篩選條件的 {{count}} 個篩選","clear-filters-for-facet_other":"清除{{label}}特性的{{count}}个筛选器","collapse-facet":"收起{{label}}筛选器","expand-facet":"展开{{label}}筛选器","showing-products-of":"产品 {{first}} / {{total}}","showing-results-of":"结果数 {{first}},总数 {{total}}","showing-products-of_other":"产品 {{first}}-{{last}} / {{total}}","showing-results-of_other":"结果数 {{first}}-{{last}},总数 {{total}}","showing-products-of-with-query":"{{query}}的产品{{first}}共{{total}}","showing-results-of-with-query":"结果数 {{first}},总数 {{total}}, 搜索 {{query}}","showing-products-of-with-query_other":"{{query}}的{{total}}的产品{{first}}-{{last}}","showing-results-of-with-query_other":"结果数 {{first}}-{{last}},总数 {{total}}, 搜索 {{query}}","showing-products-of-load-more":"正在显示{{total}}个产品中的{{last}}个","showing-results-of-load-more":"显示{{total}}个结果中的第{{last}}个","load-more-products":"加载更多产品","load-more-results":"加载更多结果","load-all-results":"加载所有结果","collapse-results":"折叠结果","no-documents-related":"没有与此相关的文件。","in-seconds":"用时 {{count}} 秒","in-seconds_other":"用时 {{count}} 秒","no-results-for":"没有找到与 {{query}} 相关的结果","no-results-for-did-you-mean":"没有找到与 {{query}} 相关的结果","showing-products-for":"显示{{query}}的产品","showing-results-for":"显示{{query}}的结果","search-instead-for":"查找替代{{query}}","search-tips":"您可以尝试使用不同的关键字,取消选择过滤器或检查拼写错误。","no-results":"没有结果","more-matches-for":"{{query}}的更多匹配","no-matches-found-for":"没有发现匹配项{{query}}","recent-searches":"最新搜索","clear-recent-searches":"清除最近搜索","cancel-last-action":"取消最后一个动作","cancel":"取消","check-spelling":"检查关键字的拼写。","try-using-fewer-keywords":"尝试使用更少、更常用或不同的关键字。","select-fewer-filters":"选择较少的筛选条件以扩大您的搜索范围。","author":"作者","file-type":"文件类型","language":"语言","source":"源","printable-uri":"结果源路径","collapsed-uri-parts":"折叠的URI部分","disconnected":"无权访问。","check-your-connection":"无法将您的查询发送到以下URL:{{url}}。请验证您的连接。","no-endpoints":"您的组织 {{org}} 没有可用的内容。","invalid-token":"确保令牌是有效的。","add-sources":"添加内容来源或等待您新建的来源完成索引。","coveo-online-help":"Coveo 在线帮助","cannot-access":"您的组织{{org}}无法访问。","something-went-wrong":"服务器出现了错误。","if-problem-persists":"如果问题仍然存在,请联系管理员。","more-info":"更多信息","clear-all-filters":"清除所有筛选条件","n-more":"{{value}} 更多...","show-n-more-filters":"显示 {{value}} 个更多筛选器","query-auto-corrected-to":"查询自动更正为 {{query}}","did-you-mean":"您要找的是不是: {{query}}","close":"关闭","no-label":"无标签","to":"{{- start}} 到 {{- end}}","min":"最小值","max":"马克斯","apply":"应用","yes":"是","no":"不","popover":"{{label}} 方面的弹出式菜单","number-input-minimum":"输入{{label}}属性的最小数字值","number-input-maximum":"输入{{label}}属相的最大数字值","number-input-apply":"为 {{label}} 属性应用自定义数字值","end":"结束","start":"开始","date-input-start":"为 {{label}} 方面输入开始日期","date-input-end":"输入{{label}}特征的结束日期","date-input-apply":"为{{label}}推出自定义的起止日期","date-format-placeholder":"年年年年-月月-日日","past-minute":"一分钟前","past-minute_other":"{{count}}分钟前","past-hour":"过去小时","past-hour_other":"{{count}}小时前","past-day":"昨天","past-day_other":"过去{{count}}天","past-week":"上周","past-week_other":"过去{{count}}周","past-month":"上个月","past-month_other":"过去{{count}}个月","past-quarter":"过去的季度","past-quarter_other":"{{count}}个季度前","past-year":"去年","past-year_other":"{{count}}年前","next-minute":"下一分钟","next-minute_other":"接下来{{count}}分钟","next-hour":"下一个小时","next-hour_other":"接下来{{count}}小时","next-day":"明天","next-day_other":"接下来 {{count}} 天","next-week":"下周","next-week_other":"接下来{{count}}周","next-month":"下个月","next-month_other":"接下来{{count}}个月","next-quarter":"下个季度","next-quarter_other":"下 {{count}} 季度","next-year":"明年","next-year_other":"未来{{count}}年","in":"裡面","under":"{{parent}} 下 {{child}}","preview-result":"预览结果","preview-modal-title":"结果预览","sort-and-filter":"排序和过滤","view-products":"查看产品","view-results":"查看结果","organization-is-paused":"由于不活动,您的 {{org}} 组织已暂停,目前无法搜索。","organization-will-resume":"您的组织正在恢复,并将很快可用。","rating":"评分","and-up":"& 向上","only":"只","loading-products":"正在加载新产品","loading-results":"正在加载新结果","query-suggestions-available-no-query":"有{{count}}个搜索建议可用。","query-suggestions-available-no-query_other":"有{{count}}个搜索建议可用。","query-suggestions-available":"有{{count}}个搜索建议可用:{{query}}。","query-suggestions-available_other":"有{{count}}个搜索建议可用:{{query}}。","query-suggestions-unavailable":"没有搜索建议。","stars":"{{max}}颗星中的一颗","stars_other":"{{max}}星,{{count}}星","stars-only":"仅 {{count}} / {{count}} 颗星","stars-range":"{{count}} 颗星中 {{value}} 颗及以上的","with-colon":"{{text}}:","between-quotations":"“{{text}}”","between-parentheses":"({{text}})","notifications":"通知","notification-n":"通知 {{n}}: {{text}}","smart-snippet":"您的问题的潜在答案","smart-snippet-source":"答案来源","smart-snippet-feedback-inquiry":"这些信息是否有用?","smart-snippet-feedback-thanks":"感谢您的反馈!","smart-snippet-feedback-explain-why":"解释为什么","smart-snippet-feedback-select-reason":"选择原因","details":"詳細信息","feedback-send":"发送","smart-snippet-feedback-reason-does-not-answer":"这根本没有回答我的问题","smart-snippet-feedback-reason-partially-answers":"这只是部分地回答了我的问题","smart-snippet-feedback-reason-was-not-a-question":"我的请求并非意图被视为问题","smart-snippet-feedback-reason-other":"其他","smart-snippet-people-also-ask":"常见问题","edit-insight":"编辑洞察","insight-history":"Insight操作历史","insight-related-cases":"与此案件相关的见解","attach-to-case":"附加到此案件","detach-from-case":"从案件中分离","result-is-attached":"结果已附加到此案件","viewed-by-customer":"客户查看","full-search":"访问完整搜索的按钮","calendar-last-day":"[昨天]","calendar-same-day":"[今天]","calendar-next-day":"[明天]","calendar-next-week":"dddd","calendar-last-week":"[上] dddd","approx_year":"大约一年","approx_year_other":"大约{{count}}年前","approx_month":"大约一个月","approx_month_other":"大约{{count}}个月","approx_day":"大约一天","day_other":"约{{count}} 天左右","quickview":"快速查看","keywords-highlight":"關鍵詞突出顯示","minimize":"最小化","quickview-add-word":"添加亮点","quickview-remove-word":"清除高亮","quickview-next":"下一个快速查看","quickview-previous":"上一次快速查看","quickview-toggle-navigation":"切换关键字导航","quickview-navigate-keywords":"在{{keyword}}的{{occurrences}}个出现之间导航","quickview-loading":"正在加载新快速查看","quickview-loaded":"快速查看 {{title}} 结果已加载。共 {{last}} 条结果中的第 {{first}} 条可用。","more":"更多","tab-popover":"弹出式菜单以获取更多选项卡","generating-answer":"生成答案","answer-generated":"生成的答案: {{answer}}","answer-could-not-be-generated":"无法生成答案","generated-answer-hidden":"生成的答案被隐藏","generated-answer-title":"生成的答案","generated-answer-toggle-on":"生成的答案打开","generated-answer-toggle-off":"生成的答案关闭","this-answer-was-helpful":"有用","this-answer-was-not-helpful":"没什么帮助","generated-answer-loading":"寻找答案中...","retry":"重试","retry-stream-message":"哎呀!在生成答案时出错了。","generated-answer-feedback-instructions":"告诉我们生成的答案为什么没有帮助。","irrelevant":"不相關","not-accurate":"不准确","out-of-date":"过时","harmful":"有害的","other":"其他","add-details":"添加详细信息","modal-done":"完成","citations":"引用","copy-generated-answer":"复制答案","generated-answer-copied":"已复制!","failed-to-copy-generated-answer":"无法复制答案","generated-answer-disclaimer":"生成的內容可能包含錯誤。驗證重要信息。","available-in":"可用于:","image-alt-fallback-multiple":"第{{count}}张图片,共{{max}}张,适用于{{itemName}}","image-alt-fallback":"{{itemName}}的图片","image-not-found-alt":"{{itemName}} 无可用图片。","image-gallery":"{{itemName}} 的图片库","feedback-modal-title":"帮助我们提高!","skip":"跳过","generated-answer-feedback-link":"链接到正确的答案","generated-answer-additional-notes":"附加说明","feedback-hallucination-free":"答案是否没有幻觉内容?","feedback-readable":"答案可读吗?","required-fields-error":"该字段是必填项。","generated-answer-feedback-success":"谢谢!您的反馈将帮助我们改善生成的答案。","additional-feedback":"提供额外反馈","answer-evaluation":"答复评估","generated-answer-send-feedback":"发送反馈","add-notes":"添加笔记","unknown":"不确定","feedback-correct-topic":"答案是关于正确的主题吗?","feedback-documented":"问题可以通过文档得到解答吗?","required-fields":"必填字段","ticket-created":"门票已创建","more-actions-in-session":"在此会话中{{count}}个更多的动作","more-actions-in-session_other":"此会话中有{{count}}个更多的操作","user-actions":"用户操作","no-user-actions-available":"没有可用的用户操作","no-user-actions-associated-with-params":"没有与用户id相关联的用户操作,或者案例太老无法检测到相关操作。","hide-preceding-sessions":"隐藏前面的会话","show-preceding-sessions":"显示前面的会议","hide-following-sessions":"隐藏以下会话","show-following-sessions":"显示以下会议","empty-search":"空的搜索","no-products":"没有产品","no-products-for":"我们找不到任何产品为{{query}}","results-loaded":"结果已加载。","all-results-loaded":"所有结果均已加载。","pager-page-loaded":"第{{page}}页已加载","refine-modal-content":"筛选和排序选项","user-actions-content":"用户操作时间线","ask-follow-up":"提出一个后续问题","show-previous-questions":"显示{{count}}个前一个问题","submit-follow-up":"提交后续问题","follow-up-input-too-long":"您的问题太长了。请使用 {{max}} 个字符或更少。","generated-answer-error-generic":"生成答案时出错。请稍后再试。","generated-answer-cannot-generate-answer":"我无法找到那个问题的答案。尝试重新表述您的后续问题或检查下面的相关结果。","ipx-body-content":"内容区域","agent-generation-step-search":"正在搜索知识库…","agent-generation-step-search-completed":"知识库已搜索","agent-generation-step-search-query":"正在搜索 {{query}}…","agent-generation-step-search-query-completed":"已搜索 {{query}}","agent-generation-step-think":"正在思考...","agent-generation-step-analyzing-question":"正在分析您的问题…","agent-generation-step-analyzing-question-completed":"问题已分析","agent-generation-step-answering":"正在生成答案…","agent-generation-step-answering-completed":"答案已生成","agent-generation-step-analyzing-results":"正在分析结果…","agent-generation-step-analyzing-results-completed":"结果已分析","collapse":"折叠","generated-answer-error-turn-limit-reached":"会话轮次限制已达。请开始新的会话。","tab-list":"内容类型标签","generated-answer-debug-mode-on":"调试模式已开启","generated-answer-conversation-id":"会话ID:{{conversationId}}","generated-answer-copy-conversation-id":"复制会话ID"}
|
|
@@ -25,12 +25,17 @@ import type { InitializableComponent } from '../../../decorators/types';
|
|
|
25
25
|
* @part search-result-path - The facet search result path.
|
|
26
26
|
* @part search-highlight - The highlighted query inside the facet values.
|
|
27
27
|
*
|
|
28
|
+
* @part selected-value - The row displaying the currently selected value and the button that clears the facet.
|
|
29
|
+
* @part selected-value-pill - The pill displaying the currently selected value.
|
|
30
|
+
* @part selected-value-clear-button - The button that clears the facet, displayed next to the selected value.
|
|
31
|
+
* @part selected-value-clear-button-icon - The icon of the button that clears the facet.
|
|
32
|
+
*
|
|
28
33
|
* @part parents - The container surrounding the whole hierarchy of values.
|
|
29
34
|
* @part sub-parents - The container surrounding a sub-hierarchy of values.
|
|
30
35
|
* @part values - The container surrounding either the children of the active value or the values at the base.
|
|
31
36
|
* @part all-categories-button - The "All categories" button displayed first within the parents.
|
|
32
37
|
* @part parent-button - The clickable parent button displayed first within sub-parents.
|
|
33
|
-
* @part active-parent - The
|
|
38
|
+
* @part active-parent - The currently selected value, displayed last within the parents. Not interactive.
|
|
34
39
|
* @part value-link - The clickable value displayed first within values.
|
|
35
40
|
* @part back-arrow - The back arrow displayed before the clickable parents.
|
|
36
41
|
* @part value-label - The facet value label within a value button.
|
|
@@ -77,6 +82,7 @@ export declare class AtomicCommerceCategoryFacet extends LitElement implements I
|
|
|
77
82
|
shouldUpdate(changedProperties: Map<string | number | symbol, unknown>): boolean;
|
|
78
83
|
private get hasParents();
|
|
79
84
|
private renderHeader;
|
|
85
|
+
private renderSelectedValue;
|
|
80
86
|
private renderValuesTree;
|
|
81
87
|
private renderChild;
|
|
82
88
|
private renderChildren;
|
package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts
CHANGED
|
@@ -62,6 +62,18 @@ export declare class AtomicCommerceInterface extends AtomicCommerceInterface_bas
|
|
|
62
62
|
* update the language as needed using the `updateLocale` method.
|
|
63
63
|
*/
|
|
64
64
|
language?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Whether to localize the interface with the country of the commerce context as well as its
|
|
67
|
+
* language, for example `fr-CA` rather than `fr`.
|
|
68
|
+
*
|
|
69
|
+
* Number, currency, and date formatting then follow the country: with the `en` language and the
|
|
70
|
+
* `CA` country, a CAD price renders as `$1,000.10` rather than `CA$1,000.10`.
|
|
71
|
+
*
|
|
72
|
+
* When Atomic has translations for the regional locale (for example `pt-BR` or `zh-TW`), the
|
|
73
|
+
* interface uses them instead of those of the language. To customize strings for such an
|
|
74
|
+
* interface, register them under the regional locale.
|
|
75
|
+
*/
|
|
76
|
+
localizeWithCountry: boolean;
|
|
65
77
|
/**
|
|
66
78
|
* The commerce interface headless engine.
|
|
67
79
|
*/
|
|
@@ -120,6 +132,9 @@ export declare class AtomicCommerceInterface extends AtomicCommerceInterface_bas
|
|
|
120
132
|
* configuration in your Coveo organization, requests made through the
|
|
121
133
|
* commerce engine will start failing.
|
|
122
134
|
*
|
|
135
|
+
* With `localize-with-country`, the country also drives the number, currency, and
|
|
136
|
+
* date formatting of the interface.
|
|
137
|
+
*
|
|
123
138
|
* @param language - (Optional) The IETF language code tag (for example, `en`).
|
|
124
139
|
* @param country - (Optional) The ISO-3166-1 country tag (for example, `US`).
|
|
125
140
|
* @param currency - (Optional) The ISO-4217 currency code (for example, `USD`).
|
|
@@ -132,6 +147,7 @@ export declare class AtomicCommerceInterface extends AtomicCommerceInterface_bas
|
|
|
132
147
|
updateLocale(language?: string, country?: string, currency?: CurrencyCodeISO4217): void;
|
|
133
148
|
toggleAnalytics(): void;
|
|
134
149
|
updateLanguage(): void;
|
|
150
|
+
toggleLocalizeWithCountry(): void;
|
|
135
151
|
updateIconAssetsPath(): void;
|
|
136
152
|
render(): import("lit-html").TemplateResult<1>;
|
|
137
153
|
private handleInitialization;
|
|
@@ -140,6 +156,7 @@ export declare class AtomicCommerceInterface extends AtomicCommerceInterface_bas
|
|
|
140
156
|
private get fragment();
|
|
141
157
|
private initContext;
|
|
142
158
|
private initLanguage;
|
|
159
|
+
private getLocale;
|
|
143
160
|
private initRequestStatus;
|
|
144
161
|
private initSummary;
|
|
145
162
|
private initUrlManager;
|
|
@@ -60,6 +60,14 @@ export declare class AtomicCommerceRecommendationInterface extends AtomicCommerc
|
|
|
60
60
|
* update the language as needed using the `updateLocale` method.
|
|
61
61
|
*/
|
|
62
62
|
language?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Whether to localize the interface with the country of the commerce context as well as its
|
|
65
|
+
* language, for example `fr-CA` rather than `fr`.
|
|
66
|
+
*
|
|
67
|
+
* Number, currency, and date formatting then follow the country: with the `en` language and the
|
|
68
|
+
* `CA` country, a CAD price renders as `$1,000.10` rather than `CA$1,000.10`.
|
|
69
|
+
*/
|
|
70
|
+
localizeWithCountry: boolean;
|
|
63
71
|
/**
|
|
64
72
|
* Whether to enable analytics.
|
|
65
73
|
*/
|
|
@@ -81,6 +89,9 @@ export declare class AtomicCommerceRecommendationInterface extends AtomicCommerc
|
|
|
81
89
|
* configuration in your Coveo organization, requests made through the
|
|
82
90
|
* commerce engine will start failing.
|
|
83
91
|
*
|
|
92
|
+
* With `localize-with-country`, the country also drives the number, currency, and
|
|
93
|
+
* date formatting of the interface.
|
|
94
|
+
*
|
|
84
95
|
* @param language - (Optional) The IETF language code tag (for example, `en`).
|
|
85
96
|
* @param country - (Optional) The ISO-3166-1 country tag (for example, `US`).
|
|
86
97
|
* @param currency - (Optional) The ISO-4217 currency code (for example, `USD`).
|
|
@@ -93,6 +104,7 @@ export declare class AtomicCommerceRecommendationInterface extends AtomicCommerc
|
|
|
93
104
|
updateLocale(language?: string, country?: string, currency?: CurrencyCodeISO4217): void;
|
|
94
105
|
toggleAnalytics(): void;
|
|
95
106
|
updateIconAssetsPath(): void;
|
|
107
|
+
toggleLocalizeWithCountry(): void;
|
|
96
108
|
updateLanguage(): Promise<void>;
|
|
97
109
|
disconnectedCallback(): void;
|
|
98
110
|
render(): import("lit-html").TemplateResult<1>;
|
|
@@ -102,6 +114,7 @@ export declare class AtomicCommerceRecommendationInterface extends AtomicCommerc
|
|
|
102
114
|
private initContext;
|
|
103
115
|
private getBindings;
|
|
104
116
|
private initLanguage;
|
|
117
|
+
private getLocale;
|
|
105
118
|
private isNewLocale;
|
|
106
119
|
}
|
|
107
120
|
declare global {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { i18n } from 'i18next';
|
|
2
|
+
import type { FunctionalComponentWithChildren } from '../../../../utils/functional-component-utils';
|
|
3
|
+
interface CategoryFacetActiveValueProps {
|
|
4
|
+
displayValue: string;
|
|
5
|
+
numberOfResults: number;
|
|
6
|
+
i18n: i18n;
|
|
7
|
+
searchQuery: string;
|
|
8
|
+
isLeafValue: boolean;
|
|
9
|
+
setRef: (el?: Element) => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Renders the deepest selected value of a category facet.
|
|
13
|
+
*
|
|
14
|
+
* The value is not interactive: it represents the filter that is already applied, and it is
|
|
15
|
+
* removed from the facet's clear button rather than by clicking it again. `tabindex="-1"`
|
|
16
|
+
* keeps it a valid target for the focus moved here once the query resolves.
|
|
17
|
+
*/
|
|
18
|
+
export declare const renderCategoryFacetActiveValue: FunctionalComponentWithChildren<CategoryFacetActiveValueProps>;
|
|
19
|
+
export type { CategoryFacetActiveValueProps };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { i18n } from 'i18next';
|
|
2
|
+
import type { FunctionalComponent } from '../../../../utils/functional-component-utils';
|
|
3
|
+
import '../../atomic-icon/atomic-icon';
|
|
4
|
+
interface CategoryFacetSelectedValueProps {
|
|
5
|
+
/**
|
|
6
|
+
* The localized label of the deepest selected value.
|
|
7
|
+
*/
|
|
8
|
+
displayValue: string;
|
|
9
|
+
/**
|
|
10
|
+
* The label of the facet, used to describe the clear button. It is localized by the component.
|
|
11
|
+
*/
|
|
12
|
+
label: string;
|
|
13
|
+
i18n: i18n;
|
|
14
|
+
onClearFilters(): void;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Renders the deepest selected value of a category facet as a pill, next to a button that
|
|
18
|
+
* clears the facet. This is what removes the filter, since the selected value itself is not
|
|
19
|
+
* interactive once applied.
|
|
20
|
+
*/
|
|
21
|
+
export declare const renderCategoryFacetSelectedValue: FunctionalComponent<CategoryFacetSelectedValueProps>;
|
|
22
|
+
export type { CategoryFacetSelectedValueProps };
|
|
@@ -3,12 +3,16 @@ import type { AnyEngineType } from './bindings';
|
|
|
3
3
|
import type { BaseAtomicInterface } from './interface-controller';
|
|
4
4
|
export declare function i18nBackendOptions(atomicInterface: BaseAtomicInterface<AnyEngineType>): HttpBackendOptions;
|
|
5
5
|
/**
|
|
6
|
-
* Loads Atomic's own translations for `language` into the interface's i18next instance
|
|
6
|
+
* Loads Atomic's own translations for `language` into the interface's i18next instance: the
|
|
7
|
+
* regional translations when Atomic has them (`pt-BR`), and those of the base language (`pt`).
|
|
8
|
+
* The languages are resolved by i18next itself, so that each bundle is stored under a code that
|
|
9
|
+
* `t()` looks up (`pt-br` resolves to `pt-BR` and `pt`, `pt_BR` to `pt_BR` and `pt`).
|
|
7
10
|
*
|
|
8
|
-
*
|
|
9
|
-
* already registered are preserved. Atomic's strings are defaults; an
|
|
10
|
-
* customizes them should win, regardless of whether it registered its values
|
|
11
|
-
* this load resolves.
|
|
11
|
+
* Each bundle is added with `deep: true, overwrite: false` so that strings the consumer has
|
|
12
|
+
* already registered for the same language are preserved. Atomic's strings are defaults; an
|
|
13
|
+
* application that customizes them should win, regardless of whether it registered its values
|
|
14
|
+
* before or after this load resolves. Because i18next resolves the regional language first,
|
|
15
|
+
* customizations for a regional interface belong under its regional code (`pt-BR`).
|
|
12
16
|
*/
|
|
13
17
|
export declare function loadTranslations(atomicInterface: BaseAtomicInterface<AnyEngineType>, language: string): Promise<void>;
|
|
14
18
|
export declare function init18n(atomicInterface: BaseAtomicInterface<AnyEngineType>): Promise<import("i18next").TFunction<"translation", undefined>>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { LitElement, ReactiveController } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* A reactive controller that keeps a pager on a single row. While the pager buttons wrap, the page
|
|
4
|
+
* button farthest from the current page is dropped, keeping at least one. All the page buttons are
|
|
5
|
+
* tried again whenever the pager's parent or the viewport is resized.
|
|
6
|
+
*/
|
|
7
|
+
export declare class PagerFitController implements ReactiveController {
|
|
8
|
+
private host;
|
|
9
|
+
private maxPages;
|
|
10
|
+
private resizeObserver?;
|
|
11
|
+
constructor(host: LitElement);
|
|
12
|
+
hostConnected(): void;
|
|
13
|
+
hostDisconnected(): void;
|
|
14
|
+
hostUpdated(): void;
|
|
15
|
+
/**
|
|
16
|
+
* Returns how many page buttons the pager should display.
|
|
17
|
+
* @param numberOfPages The maximum number of page buttons configured on the pager.
|
|
18
|
+
*/
|
|
19
|
+
getNumberOfPagesToDisplay(numberOfPages: number): number;
|
|
20
|
+
private reset;
|
|
21
|
+
}
|
|
@@ -10,7 +10,7 @@ interface SearchBoxSuggestions {
|
|
|
10
10
|
*/
|
|
11
11
|
position: number;
|
|
12
12
|
/**
|
|
13
|
-
* Whether the suggestions should be listed in the right or left panel. By default, the suggestions are listed in the
|
|
13
|
+
* Whether the suggestions should be listed in the right or left panel. By default, the suggestions are listed in the left panel.
|
|
14
14
|
*/
|
|
15
15
|
panel?: 'left' | 'right';
|
|
16
16
|
/**
|
|
@@ -50,7 +50,7 @@ export interface SearchBoxSuggestions {
|
|
|
50
50
|
*/
|
|
51
51
|
position: number;
|
|
52
52
|
/**
|
|
53
|
-
* Whether the suggestions should be listed in the right or left panel. By default, the suggestions are listed in the
|
|
53
|
+
* Whether the suggestions should be listed in the right or left panel. By default, the suggestions are listed in the left panel.
|
|
54
54
|
*/
|
|
55
55
|
panel?: 'left' | 'right';
|
|
56
56
|
/**
|
package/dist/types/components/insight/atomic-insight-interface/atomic-insight-interface.d.ts
CHANGED
|
@@ -39,6 +39,10 @@ export declare class AtomicInsightInterface extends AtomicInsightInterface_base
|
|
|
39
39
|
logLevel?: InsightLogLevel;
|
|
40
40
|
/**
|
|
41
41
|
* The service insight interface language.
|
|
42
|
+
*
|
|
43
|
+
* Accepts a language (`en`) or a [BCP 47](https://www.rfc-editor.org/info/bcp47) locale
|
|
44
|
+
* (`en-CA`). The region drives number, currency, and localized date formats, while
|
|
45
|
+
* translations use the closest available language.
|
|
42
46
|
*/
|
|
43
47
|
language: string;
|
|
44
48
|
/**
|
package/dist/types/components/recommendations/atomic-recs-interface/atomic-recs-interface.d.ts
CHANGED
|
@@ -62,6 +62,10 @@ export declare class AtomicRecsInterface extends AtomicRecsInterface_base implem
|
|
|
62
62
|
i18n: i18n;
|
|
63
63
|
/**
|
|
64
64
|
* The recommendation interface language.
|
|
65
|
+
*
|
|
66
|
+
* Accepts a language (`en`) or a [BCP 47](https://www.rfc-editor.org/info/bcp47) locale
|
|
67
|
+
* (`en-CA`). The region drives number, currency, and localized date formats, while
|
|
68
|
+
* translations use the closest available language.
|
|
65
69
|
*/
|
|
66
70
|
language: string;
|
|
67
71
|
/**
|
|
@@ -25,12 +25,17 @@ import type { InitializableComponent } from '../../../decorators/types';
|
|
|
25
25
|
* @part search-result-path - The search result path.
|
|
26
26
|
* @part search-highlight - The highlighted query inside the facet values.
|
|
27
27
|
*
|
|
28
|
+
* @part selected-value - The row displaying the currently selected value and the button that clears the facet.
|
|
29
|
+
* @part selected-value-pill - The pill displaying the currently selected value.
|
|
30
|
+
* @part selected-value-clear-button - The button that clears the facet, displayed next to the selected value.
|
|
31
|
+
* @part selected-value-clear-button-icon - The icon of the button that clears the facet.
|
|
32
|
+
*
|
|
28
33
|
* @part parents - The container surrounding the whole hierarchy of values.
|
|
29
34
|
* @part sub-parents - The container surrounding a sub-hierarchy of values.
|
|
30
35
|
* @part values - The container surrounding either the children of the active value or the values at the base.
|
|
31
|
-
* @part all-categories-button - The "
|
|
36
|
+
* @part all-categories-button - The "All Categories" button displayed first within the parents.
|
|
32
37
|
* @part parent-button - The clickable parent button displayed first within sub-parents.
|
|
33
|
-
* @part active-parent - The
|
|
38
|
+
* @part active-parent - The currently selected value, displayed last within the parents. Not interactive.
|
|
34
39
|
* @part value-link - The clickable value displayed first within values.
|
|
35
40
|
* @part back-arrow - The back arrow displayed before the clickable parents.
|
|
36
41
|
* @part value-label - The facet value label within a value button.
|
|
@@ -176,6 +181,7 @@ export declare class AtomicCategoryFacet extends LitElement implements Initializ
|
|
|
176
181
|
private initializeDependenciesManager;
|
|
177
182
|
private renderHeader;
|
|
178
183
|
private renderSearchInput;
|
|
184
|
+
private renderSelectedValue;
|
|
179
185
|
private renderValuesTree;
|
|
180
186
|
private renderChild;
|
|
181
187
|
private renderChildren;
|
|
@@ -18,6 +18,9 @@ export declare class AtomicResultDate extends AtomicResultDate_base implements I
|
|
|
18
18
|
/**
|
|
19
19
|
* The format of the date.
|
|
20
20
|
* Available formats: https://day.js.org/docs/en/display/format
|
|
21
|
+
*
|
|
22
|
+
* [Localized formats](https://day.js.org/docs/en/display/format#localized-formats) such as `L`, `LL`, or `LLL`
|
|
23
|
+
* follow the interface `language`: with `format="L"`, `en-US` renders `09/30/2026` and `en-CA` renders `2026-09-30`.
|
|
21
24
|
*/
|
|
22
25
|
format: string;
|
|
23
26
|
/**
|
|
@@ -70,6 +70,10 @@ export declare class AtomicSearchInterface extends AtomicSearchInterface_base im
|
|
|
70
70
|
i18n: i18n;
|
|
71
71
|
/**
|
|
72
72
|
* The search interface language.
|
|
73
|
+
*
|
|
74
|
+
* Accepts a language (`en`) or a [BCP 47](https://www.rfc-editor.org/info/bcp47) locale
|
|
75
|
+
* (`en-CA`). The region drives number, currency, and localized date formats, while
|
|
76
|
+
* translations use the closest available language.
|
|
73
77
|
*/
|
|
74
78
|
language: string;
|
|
75
79
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function loadDayjsLocale(languageInput: string): void
|
|
1
|
+
export declare function loadDayjsLocale(languageInput: string): Promise<void>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { i18n } from 'i18next';
|
|
2
|
-
export declare function getFieldCaptions(field: string, i18n: i18n):
|
|
2
|
+
export declare function getFieldCaptions(field: string, i18n: i18n): Record<string, string>;
|
|
3
3
|
export declare function getFieldValueCaption(field: string, facetValue: string, i18n: i18n): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Combines a language and a country into a locale, for example `fr` and `CA` into `fr-CA`.
|
|
3
|
+
*
|
|
4
|
+
* Returns the language unchanged when there is no country, when the language already has a
|
|
5
|
+
* region, or when the combination is not a valid locale.
|
|
6
|
+
*/
|
|
7
|
+
export declare function withCountry(language: string, country?: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coveo/atomic",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.63.0",
|
|
4
4
|
"description": "A web-component library for building modern UIs interfacing with the Coveo platform",
|
|
5
5
|
"homepage": "https://docs.coveo.com/en/atomic/latest/",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"./custom-elements-manifest": "./custom-elements.json"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@coveo/atomic-legacy": "0.1.
|
|
58
|
+
"@coveo/atomic-legacy": "0.1.8",
|
|
59
59
|
"@coveo/bueno": "1.1.9",
|
|
60
|
-
"@coveo/headless": "3.57.
|
|
60
|
+
"@coveo/headless": "3.57.3",
|
|
61
61
|
"@coveo/relay-event-types": "20.7.1",
|
|
62
62
|
"@lit/context": "1.1.6",
|
|
63
63
|
"@open-wc/lit-helpers": "0.7.0",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
},
|
|
120
120
|
"peerDependencies": {
|
|
121
121
|
"@coveo/bueno": "^1.1.9",
|
|
122
|
-
"@coveo/headless": "^3.57.
|
|
122
|
+
"@coveo/headless": "^3.57.3",
|
|
123
123
|
"typescript": ">=5.0.0"
|
|
124
124
|
},
|
|
125
125
|
"peerDependenciesMeta": {
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { renderCategoryFacetValueLink } from "./value-link.js";
|
|
2
|
-
const renderCategoryFacetParentValueLink = ({ props })=>renderCategoryFacetValueLink({
|
|
3
|
-
props: {
|
|
4
|
-
...props,
|
|
5
|
-
isParent: true,
|
|
6
|
-
isSelected: true
|
|
7
|
-
}
|
|
8
|
-
});
|
|
9
|
-
export { renderCategoryFacetParentValueLink };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { FunctionalComponentWithChildren } from '../../../../utils/functional-component-utils';
|
|
2
|
-
import { type CategoryFacetValueLinkProps } from './value-link';
|
|
3
|
-
interface CategoryFacetParentValueLinkProps extends Omit<CategoryFacetValueLinkProps, 'isParent' | 'isSelected'> {
|
|
4
|
-
}
|
|
5
|
-
export declare const renderCategoryFacetParentValueLink: FunctionalComponentWithChildren<CategoryFacetParentValueLinkProps>;
|
|
6
|
-
export type { CategoryFacetParentValueLinkProps };
|