@coveo/atomic 3.60.2 → 3.60.3
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 +1240 -1240
- package/dist/cjs/components/commerce/atomic-commerce-facet-number-input/atomic-commerce-facet-number-input.cjs +2 -6
- package/dist/cjs/components/commerce/atomic-commerce-facets/atomic-commerce-facets.cjs +1 -3
- package/dist/cjs/components/commerce/atomic-commerce-layout/atomic-commerce-layout.tw.css.cjs +3 -11
- package/dist/cjs/components/commerce/atomic-commerce-no-products/atomic-commerce-no-products.cjs +1 -2
- package/dist/cjs/components/commerce/atomic-commerce-recommendation-list/atomic-commerce-recommendation-list.cjs +3 -12
- package/dist/cjs/components/commerce/atomic-commerce-search-box-instant-products/atomic-commerce-search-box-instant-products.cjs +10 -10
- package/dist/cjs/components/commerce/atomic-commerce-timeframe-facet/atomic-commerce-timeframe-facet.cjs +4 -4
- package/dist/cjs/components/commerce/atomic-product-children/atomic-product-children.cjs +1 -3
- package/dist/cjs/components/commerce/atomic-product-description/atomic-product-description.cjs +1 -3
- package/dist/cjs/components/commerce/atomic-product-link/atomic-product-link.cjs +1 -4
- package/dist/cjs/components/commerce/atomic-product-multi-value-text/atomic-product-multi-value-text.cjs +2 -7
- package/dist/cjs/components/commerce/atomic-product-rating/atomic-product-rating.cjs +1 -3
- package/dist/cjs/components/common/atomic-agent-stream-of-thought/atomic-agent-stream-of-thought.cjs +2 -6
- package/dist/cjs/components/common/atomic-ask-follow-up-input/atomic-ask-follow-up-input.cjs +1 -6
- package/dist/cjs/components/common/atomic-citation/atomic-citation.cjs +1 -5
- package/dist/cjs/components/common/atomic-facet-date-input/atomic-facet-date-input.cjs +2 -10
- package/dist/cjs/components/common/atomic-facet-number-input/atomic-facet-number-input.cjs +2 -10
- package/dist/cjs/components/common/atomic-facet-placeholder/atomic-facet-placeholder.cjs +1 -5
- package/dist/cjs/components/common/atomic-generated-answer-feedback-modal/atomic-generated-answer-feedback-modal.cjs +23 -35
- package/dist/cjs/components/common/atomic-generated-answer-thread/atomic-generated-answer-thread.cjs +3 -8
- package/dist/cjs/components/common/atomic-generated-answer-thread-item/atomic-generated-answer-thread-item.cjs +1 -3
- package/dist/cjs/components/common/atomic-rating/rating.cjs +2 -5
- package/dist/cjs/components/common/atomic-result-placeholder/atomic-result-placeholder.cjs +2 -9
- package/dist/cjs/components/common/atomic-smart-snippet-collapse-wrapper/atomic-smart-snippet-collapse-wrapper.cjs +2 -11
- package/dist/cjs/components/common/atomic-smart-snippet-expandable-answer/atomic-smart-snippet-expandable-answer.cjs +1 -4
- package/dist/cjs/components/common/atomic-smart-snippet-expandable-answer/atomic-smart-snippet-expandable-answer.tw.css.cjs +2 -11
- package/dist/cjs/components/common/atomic-smart-snippet-source/atomic-smart-snippet-source.cjs +1 -4
- package/dist/cjs/components/common/atomic-tab-button/atomic-tab-button.cjs +1 -4
- package/dist/cjs/components/common/atomic-tab-popover/atomic-tab-popover.cjs +1 -3
- package/dist/cjs/components/common/breadbox/breadcrumb-content.cjs +1 -5
- package/dist/cjs/components/common/button.cjs +1 -2
- package/dist/cjs/components/common/carousel.cjs +1 -3
- package/dist/cjs/components/common/expandable-text/expandable-text.cjs +2 -9
- package/dist/cjs/components/common/facets/category-facet/all-categories-button.cjs +1 -5
- package/dist/cjs/components/common/facets/category-facet/parent-button.cjs +1 -5
- package/dist/cjs/components/common/facets/category-facet/search-value.cjs +1 -3
- package/dist/cjs/components/common/facets/facet-container/facet-container.cjs +2 -7
- package/dist/cjs/components/common/facets/facet-placeholder/facet-placeholder.cjs +1 -4
- package/dist/cjs/components/common/facets/facet-search/facet-search-input.cjs +1 -4
- package/dist/cjs/components/common/facets/facet-value-box/facet-value-box.tw.css.cjs +1 -4
- package/dist/cjs/components/common/generated-answer/generated-content/generated-markdown-content.cjs +1 -4
- package/dist/cjs/components/common/generated-answer/generated-content/generated-markdown-content.tw.css.cjs +4 -16
- package/dist/cjs/components/common/generated-answer/render-conversation-debug-header.cjs +2 -7
- package/dist/cjs/components/common/generated-answer/render-generating-answer-label.cjs +1 -4
- package/dist/cjs/components/common/generated-answer/source-citations.cjs +2 -6
- package/dist/cjs/components/common/image-carousel/image-carousel.cjs +2 -8
- package/dist/cjs/components/common/item-list/display-wrapper.cjs +1 -3
- package/dist/cjs/components/common/item-list/table-layout.cjs +2 -8
- package/dist/cjs/components/common/items-per-page/choices.cjs +1 -6
- package/dist/cjs/components/common/items-per-page/label.cjs +8 -8
- package/dist/cjs/components/common/load-more/container.cjs +1 -3
- package/dist/cjs/components/common/load-more/summary.cjs +1 -3
- package/dist/cjs/components/common/no-items/container.cjs +3 -5
- package/dist/cjs/components/common/no-items/no-items.cjs +1 -6
- package/dist/cjs/components/common/query-error/link.cjs +1 -5
- package/dist/cjs/components/common/query-summary/container.cjs +1 -3
- package/dist/cjs/components/common/refine-modal/filters.cjs +1 -4
- package/dist/cjs/components/common/refine-modal/modal.cjs +1 -5
- package/dist/cjs/components/common/refine-modal/sort.cjs +2 -9
- package/dist/cjs/components/common/result-children/children-wrapper.cjs +3 -4
- package/dist/cjs/components/common/result-children/collection-guard.cjs +1 -3
- package/dist/cjs/components/common/search-box/search-box-wrapper.cjs +1 -5
- package/dist/cjs/components/common/search-box/submit-button.cjs +2 -9
- package/dist/cjs/components/common/search-box/text-area-clear-button.cjs +1 -5
- package/dist/cjs/components/common/smart-snippets/atomic-smart-snippet/snippet-footer.cjs +1 -4
- package/dist/cjs/components/common/smart-snippets/atomic-smart-snippet-feedback-modal/modal-body.cjs +1 -7
- package/dist/cjs/components/common/smart-snippets/atomic-smart-snippet-feedback-modal/modal-details.cjs +1 -4
- package/dist/cjs/components/common/smart-snippets/atomic-smart-snippet-suggestions/answer-and-source-wrapper.cjs +1 -5
- package/dist/cjs/components/common/smart-snippets/atomic-smart-snippet-suggestions/footer.cjs +1 -4
- package/dist/cjs/components/common/smart-snippets/smart-snippet-feedback-banner.cjs +1 -4
- package/dist/cjs/components/common/sort/label.cjs +1 -5
- package/dist/cjs/components/common/sort/option.cjs +1 -3
- package/dist/cjs/components/common/suggestions/query-suggestions.cjs +1 -4
- package/dist/cjs/components/common/suggestions/recent-queries.cjs +3 -11
- package/dist/cjs/components/insight/atomic-insight-facet/atomic-insight-facet.cjs +2 -7
- package/dist/cjs/components/insight/atomic-insight-folded-result-list/atomic-insight-folded-result-list.cjs +11 -11
- package/dist/cjs/components/insight/atomic-insight-no-results/atomic-insight-no-results.cjs +1 -2
- package/dist/cjs/components/insight/atomic-insight-result/atomic-insight-result.cjs +1 -3
- package/dist/cjs/components/insight/atomic-insight-user-actions-modal/atomic-insight-user-actions-modal.cjs +2 -8
- package/dist/cjs/components/insight/atomic-insight-user-actions-session/atomic-insight-user-actions-session.cjs +2 -8
- package/dist/cjs/components/insight/atomic-insight-user-actions-session/user-action.cjs +2 -6
- package/dist/cjs/components/insight/atomic-insight-user-actions-timeline/atomic-insight-user-actions-timeline.cjs +1 -3
- package/dist/cjs/components/ipx/atomic-ipx-body/ipx-body.cjs +2 -7
- package/dist/cjs/components/ipx/atomic-ipx-button/atomic-ipx-button.cjs +3 -11
- package/dist/cjs/components/ipx/atomic-ipx-recs-list/atomic-ipx-recs-list.cjs +2 -8
- package/dist/cjs/components/ipx/atomic-ipx-result-link/atomic-ipx-result-link.cjs +1 -4
- package/dist/cjs/components/recommendations/atomic-recs-list/atomic-recs-list.cjs +1 -4
- package/dist/cjs/components/search/atomic-automatic-facet/atomic-automatic-facet.cjs +1 -2
- package/dist/cjs/components/search/atomic-automatic-facet-generator/atomic-automatic-facet-generator.cjs +8 -8
- package/dist/cjs/components/search/atomic-category-facet/atomic-category-facet.cjs +2 -4
- package/dist/cjs/components/search/atomic-color-facet/atomic-color-facet.cjs +2 -7
- package/dist/cjs/components/search/atomic-facet/atomic-facet.cjs +1 -3
- package/dist/cjs/components/search/atomic-folded-result-list/atomic-folded-result-list.cjs +12 -12
- package/dist/cjs/components/search/atomic-no-results/atomic-no-results.cjs +2 -2
- package/dist/cjs/components/search/atomic-notifications/atomic-notifications.cjs +1 -3
- package/dist/cjs/components/search/atomic-popover/atomic-popover.cjs +1 -7
- package/dist/cjs/components/search/atomic-quickview-modal/atomic-quickview-modal.cjs +1 -4
- package/dist/cjs/components/search/atomic-rating-facet/atomic-rating-facet.cjs +1 -2
- package/dist/cjs/components/search/atomic-rating-range-facet/atomic-rating-range-facet.cjs +1 -1
- package/dist/cjs/components/search/atomic-relevance-inspector/atomic-relevance-inspector.cjs +1 -3
- package/dist/cjs/components/search/atomic-result/atomic-result.cjs +1 -3
- package/dist/cjs/components/search/atomic-result-badge/atomic-result-badge.cjs +2 -6
- package/dist/cjs/components/search/atomic-result-html/atomic-result-html.cjs +1 -6
- package/dist/cjs/components/search/atomic-result-link/atomic-result-link.cjs +1 -4
- package/dist/cjs/components/search/atomic-result-multi-value-text/atomic-result-multi-value-text.cjs +3 -7
- package/dist/cjs/components/search/atomic-result-table-placeholder/atomic-result-table-placeholder.cjs +8 -32
- package/dist/cjs/components/search/atomic-search-box-instant-results/atomic-search-box-instant-results.cjs +9 -9
- package/dist/cjs/components/search/atomic-search-layout/atomic-search-layout.tw.css.cjs +3 -11
- package/dist/cjs/components/search/atomic-segmented-facet/atomic-segmented-facet.cjs +1 -4
- package/dist/cjs/components/search/atomic-segmented-facet-scrollable/atomic-segmented-facet-scrollable.cjs +1 -4
- package/dist/cjs/components/search/facets/facet-segmented-value/facet-segmented-value.cjs +1 -5
- package/dist/cjs/components/search/result-template-components/atomic-quickview-sidebar/atomic-quickview-sidebar.cjs +2 -4
- package/dist/cjs/components/search/result-template-components/atomic-quickview-sidebar/highlight-keywords-checkbox.cjs +1 -3
- package/dist/cjs/components/search/result-template-components/atomic-quickview-sidebar/keywords.cjs +1 -4
- package/dist/cjs/directives/hierarchical-path.cjs +1 -3
- package/dist/cjs/global/environment.cjs +1 -1
- package/dist/cjs/versions.cjs +1 -1
- package/dist/esm/components/commerce/atomic-commerce-facet-number-input/atomic-commerce-facet-number-input.js +2 -6
- package/dist/esm/components/commerce/atomic-commerce-facets/atomic-commerce-facets.js +1 -3
- package/dist/esm/components/commerce/atomic-commerce-layout/atomic-commerce-layout.tw.css.js +1 -5
- package/dist/esm/components/commerce/atomic-commerce-no-products/atomic-commerce-no-products.js +1 -2
- package/dist/esm/components/commerce/atomic-commerce-recommendation-list/atomic-commerce-recommendation-list.js +1 -4
- package/dist/esm/components/commerce/atomic-commerce-search-box-instant-products/atomic-commerce-search-box-instant-products.js +10 -10
- package/dist/esm/components/commerce/atomic-commerce-timeframe-facet/atomic-commerce-timeframe-facet.js +4 -4
- package/dist/esm/components/commerce/atomic-product-children/atomic-product-children.js +1 -3
- package/dist/esm/components/commerce/atomic-product-description/atomic-product-description.js +1 -3
- package/dist/esm/components/commerce/atomic-product-link/atomic-product-link.js +1 -4
- package/dist/esm/components/commerce/atomic-product-multi-value-text/atomic-product-multi-value-text.js +2 -7
- package/dist/esm/components/commerce/atomic-product-rating/atomic-product-rating.js +1 -3
- package/dist/esm/components/common/atomic-agent-stream-of-thought/atomic-agent-stream-of-thought.js +2 -6
- package/dist/esm/components/common/atomic-ask-follow-up-input/atomic-ask-follow-up-input.js +1 -6
- package/dist/esm/components/common/atomic-citation/atomic-citation.js +1 -5
- package/dist/esm/components/common/atomic-facet-date-input/atomic-facet-date-input.js +2 -10
- package/dist/esm/components/common/atomic-facet-number-input/atomic-facet-number-input.js +2 -10
- package/dist/esm/components/common/atomic-facet-placeholder/atomic-facet-placeholder.js +1 -5
- package/dist/esm/components/common/atomic-generated-answer-feedback-modal/atomic-generated-answer-feedback-modal.js +23 -35
- package/dist/esm/components/common/atomic-generated-answer-thread/atomic-generated-answer-thread.js +3 -8
- package/dist/esm/components/common/atomic-generated-answer-thread-item/atomic-generated-answer-thread-item.js +1 -3
- package/dist/esm/components/common/atomic-rating/rating.js +2 -5
- package/dist/esm/components/common/atomic-result-placeholder/atomic-result-placeholder.js +2 -9
- package/dist/esm/components/common/atomic-smart-snippet-collapse-wrapper/atomic-smart-snippet-collapse-wrapper.js +1 -2
- package/dist/esm/components/common/atomic-smart-snippet-expandable-answer/atomic-smart-snippet-expandable-answer.js +1 -4
- package/dist/esm/components/common/atomic-smart-snippet-source/atomic-smart-snippet-source.js +1 -4
- package/dist/esm/components/common/atomic-tab-button/atomic-tab-button.js +1 -4
- package/dist/esm/components/common/atomic-tab-popover/atomic-tab-popover.js +1 -3
- package/dist/esm/components/common/breadbox/breadcrumb-content.js +1 -5
- package/dist/esm/components/common/button.js +1 -2
- package/dist/esm/components/common/carousel.js +1 -3
- package/dist/esm/components/common/expandable-text/expandable-text.js +2 -9
- package/dist/esm/components/common/facets/category-facet/all-categories-button.js +1 -5
- package/dist/esm/components/common/facets/category-facet/parent-button.js +1 -5
- package/dist/esm/components/common/facets/category-facet/search-value.js +1 -3
- package/dist/esm/components/common/facets/facet-container/facet-container.js +2 -7
- package/dist/esm/components/common/facets/facet-placeholder/facet-placeholder.js +1 -4
- package/dist/esm/components/common/facets/facet-search/facet-search-input.js +1 -4
- package/dist/esm/components/common/generated-answer/generated-content/generated-markdown-content.js +1 -4
- package/dist/esm/components/common/generated-answer/render-conversation-debug-header.js +2 -7
- package/dist/esm/components/common/generated-answer/render-generating-answer-label.js +1 -4
- package/dist/esm/components/common/generated-answer/source-citations.js +2 -6
- package/dist/esm/components/common/image-carousel/image-carousel.js +2 -8
- package/dist/esm/components/common/item-list/display-wrapper.js +1 -3
- package/dist/esm/components/common/item-list/table-layout.js +2 -8
- package/dist/esm/components/common/items-per-page/choices.js +1 -6
- package/dist/esm/components/common/items-per-page/label.js +8 -8
- package/dist/esm/components/common/load-more/container.js +1 -3
- package/dist/esm/components/common/load-more/summary.js +1 -3
- package/dist/esm/components/common/no-items/container.js +3 -5
- package/dist/esm/components/common/no-items/no-items.js +1 -6
- package/dist/esm/components/common/query-error/link.js +1 -5
- package/dist/esm/components/common/query-summary/container.js +1 -3
- package/dist/esm/components/common/refine-modal/filters.js +1 -4
- package/dist/esm/components/common/refine-modal/modal.js +1 -5
- package/dist/esm/components/common/refine-modal/sort.js +2 -9
- package/dist/esm/components/common/result-children/children-wrapper.js +3 -4
- package/dist/esm/components/common/result-children/collection-guard.js +1 -3
- package/dist/esm/components/common/search-box/search-box-wrapper.js +1 -5
- package/dist/esm/components/common/search-box/submit-button.js +2 -9
- package/dist/esm/components/common/search-box/text-area-clear-button.js +1 -5
- package/dist/esm/components/common/smart-snippets/atomic-smart-snippet/snippet-footer.js +1 -4
- package/dist/esm/components/common/smart-snippets/atomic-smart-snippet-feedback-modal/modal-body.js +1 -7
- package/dist/esm/components/common/smart-snippets/atomic-smart-snippet-feedback-modal/modal-details.js +1 -4
- package/dist/esm/components/common/smart-snippets/atomic-smart-snippet-suggestions/answer-and-source-wrapper.js +1 -5
- package/dist/esm/components/common/smart-snippets/atomic-smart-snippet-suggestions/footer.js +1 -4
- package/dist/esm/components/common/smart-snippets/smart-snippet-feedback-banner.js +1 -4
- package/dist/esm/components/common/sort/label.js +1 -5
- package/dist/esm/components/common/sort/option.js +1 -3
- package/dist/esm/components/common/suggestions/query-suggestions.js +1 -4
- package/dist/esm/components/common/suggestions/recent-queries.js +3 -11
- package/dist/esm/components/insight/atomic-insight-facet/atomic-insight-facet.js +2 -7
- package/dist/esm/components/insight/atomic-insight-folded-result-list/atomic-insight-folded-result-list.js +11 -11
- package/dist/esm/components/insight/atomic-insight-no-results/atomic-insight-no-results.js +1 -2
- package/dist/esm/components/insight/atomic-insight-result/atomic-insight-result.js +1 -3
- package/dist/esm/components/insight/atomic-insight-user-actions-modal/atomic-insight-user-actions-modal.js +2 -8
- package/dist/esm/components/insight/atomic-insight-user-actions-session/atomic-insight-user-actions-session.js +2 -8
- package/dist/esm/components/insight/atomic-insight-user-actions-session/user-action.js +2 -6
- package/dist/esm/components/ipx/atomic-ipx-body/ipx-body.js +2 -7
- package/dist/esm/components/ipx/atomic-ipx-button/atomic-ipx-button.js +3 -11
- package/dist/esm/components/ipx/atomic-ipx-recs-list/atomic-ipx-recs-list.js +1 -4
- package/dist/esm/components/ipx/atomic-ipx-result-link/atomic-ipx-result-link.js +1 -4
- package/dist/esm/components/search/atomic-automatic-facet/atomic-automatic-facet.js +1 -2
- package/dist/esm/components/search/atomic-automatic-facet-generator/atomic-automatic-facet-generator.js +8 -8
- package/dist/esm/components/search/atomic-category-facet/atomic-category-facet.js +2 -4
- package/dist/esm/components/search/atomic-color-facet/atomic-color-facet.js +1 -3
- package/dist/esm/components/search/atomic-facet/atomic-facet.js +1 -3
- package/dist/esm/components/search/atomic-folded-result-list/atomic-folded-result-list.js +12 -12
- package/dist/esm/components/search/atomic-no-results/atomic-no-results.js +2 -2
- package/dist/esm/components/search/atomic-notifications/atomic-notifications.js +1 -3
- package/dist/esm/components/search/atomic-popover/atomic-popover.js +1 -7
- package/dist/esm/components/search/atomic-quickview-modal/atomic-quickview-modal.js +1 -4
- package/dist/esm/components/search/atomic-rating-facet/atomic-rating-facet.js +1 -2
- package/dist/esm/components/search/atomic-rating-range-facet/atomic-rating-range-facet.js +1 -1
- package/dist/esm/components/search/atomic-relevance-inspector/atomic-relevance-inspector.js +1 -3
- package/dist/esm/components/search/atomic-result/atomic-result.js +1 -3
- package/dist/esm/components/search/atomic-result-badge/atomic-result-badge.js +2 -6
- package/dist/esm/components/search/atomic-result-html/atomic-result-html.js +1 -6
- package/dist/esm/components/search/atomic-result-link/atomic-result-link.js +1 -4
- package/dist/esm/components/search/atomic-result-multi-value-text/atomic-result-multi-value-text.js +3 -7
- package/dist/esm/components/search/atomic-result-table-placeholder/atomic-result-table-placeholder.js +8 -32
- package/dist/esm/components/search/atomic-search-box-instant-results/atomic-search-box-instant-results.js +9 -9
- package/dist/esm/components/search/atomic-search-layout/atomic-search-layout.tw.css.js +1 -5
- package/dist/esm/components/search/atomic-segmented-facet/atomic-segmented-facet.js +1 -4
- package/dist/esm/components/search/atomic-segmented-facet-scrollable/atomic-segmented-facet-scrollable.js +1 -4
- package/dist/esm/components/search/facets/facet-segmented-value/facet-segmented-value.js +1 -5
- package/dist/esm/components/search/result-template-components/atomic-quickview-sidebar/atomic-quickview-sidebar.js +2 -4
- package/dist/esm/components/search/result-template-components/atomic-quickview-sidebar/highlight-keywords-checkbox.js +1 -3
- package/dist/esm/components/search/result-template-components/atomic-quickview-sidebar/keywords.js +1 -4
- package/dist/esm/directives/hierarchical-path.js +1 -3
- package/dist/esm/global/environment.js +1 -1
- package/dist/esm/versions.js +1 -1
- package/dist/themes/accessible.css +3 -4
- package/dist/themes/coveo.css +3 -4
- package/dist/types/components/common/facets/facet-search/facet-search-input-guard.d.ts +1 -1
- package/dist/types/components/common/query-error/description.d.ts +1 -1
- package/dist/types/components/common/query-error/title.d.ts +1 -1
- package/dist/types/utils/functional-component-utils.d.ts +1 -1
- package/package.json +7 -7
|
@@ -20,11 +20,7 @@ const renderRefineModal = ({ props })=>(children)=>{
|
|
|
20
20
|
onClick: props.onClose,
|
|
21
21
|
ariaLabel: props.i18n.t('close')
|
|
22
22
|
}
|
|
23
|
-
})(html`<atomic-icon
|
|
24
|
-
part="close-icon"
|
|
25
|
-
class="h-5 w-5"
|
|
26
|
-
icon=${images_close}
|
|
27
|
-
></atomic-icon>`)}
|
|
23
|
+
})(html`<atomic-icon part="close-icon" class="h-5 w-5" icon=${images_close}></atomic-icon>`)}
|
|
28
24
|
</div>
|
|
29
25
|
`;
|
|
30
26
|
const renderFooter = ()=>html`
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { html } from "lit";
|
|
2
2
|
import sort from "../../../images/sort.js";
|
|
3
3
|
const renderRefineModalSortSection = ({ props })=>(children)=>html`
|
|
4
|
-
<h2
|
|
5
|
-
part="section-title section-sort-title"
|
|
6
|
-
class="mb-3 truncate text-2xl font-bold"
|
|
7
|
-
>
|
|
4
|
+
<h2 part="section-title section-sort-title" class="mb-3 truncate text-2xl font-bold">
|
|
8
5
|
${props.i18n.t('sort')}
|
|
9
6
|
</h2>
|
|
10
7
|
<div part="select-wrapper" class="relative">
|
|
@@ -20,11 +17,7 @@ const renderRefineModalSortSection = ({ props })=>(children)=>html`
|
|
|
20
17
|
part="select-icon-wrapper"
|
|
21
18
|
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"
|
|
22
19
|
>
|
|
23
|
-
<atomic-icon
|
|
24
|
-
part="select-icon"
|
|
25
|
-
icon=${sort}
|
|
26
|
-
class="h-6 w-6"
|
|
27
|
-
></atomic-icon>
|
|
20
|
+
<atomic-icon part="select-icon" icon=${sort} class="h-6 w-6"></atomic-icon>
|
|
28
21
|
</div>
|
|
29
22
|
</div>
|
|
30
23
|
`;
|
|
@@ -3,9 +3,8 @@ import { when } from "lit/directives/when.js";
|
|
|
3
3
|
const renderChildrenWrapper = ()=>(children)=>{
|
|
4
4
|
const hasChildren = children !== nothing;
|
|
5
5
|
return html`<div part="children-root">
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
</div>`;
|
|
6
|
+
${when(hasChildren, ()=>html`<slot name="before-children"></slot>`)} ${children}
|
|
7
|
+
${when(hasChildren, ()=>html`<slot name="after-children"></slot>`)}
|
|
8
|
+
</div>`;
|
|
10
9
|
};
|
|
11
10
|
export { renderChildrenWrapper };
|
|
@@ -16,9 +16,7 @@ const renderCollectionGuard = ({ props })=>(children)=>{
|
|
|
16
16
|
});
|
|
17
17
|
return hasChildren ? renderChildrenWrapper()(placeholders) : html`<div part="children-root">${placeholders}</div>`;
|
|
18
18
|
}
|
|
19
|
-
if (!moreResultsAvailable && !hasChildren) return when(noResultText.trim().length > 0, ()=>html`<p part="no-result-root" class="no-result-root my-3"
|
|
20
|
-
${noResultText}
|
|
21
|
-
</p>`);
|
|
19
|
+
if (!moreResultsAvailable && !hasChildren) return when(noResultText.trim().length > 0, ()=>html`<p part="no-result-root" class="no-result-root my-3">${noResultText}</p>`);
|
|
22
20
|
if (!hasChildren) return nothing;
|
|
23
21
|
return children;
|
|
24
22
|
};
|
|
@@ -6,11 +6,7 @@ const renderSearchBoxWrapper = ({ props })=>(children)=>{
|
|
|
6
6
|
'focus-within:border-disabled focus-within:ring-neutral': props.disabled,
|
|
7
7
|
'focus-within:border-primary focus-within:ring-ring-primary': !props.disabled
|
|
8
8
|
});
|
|
9
|
-
return html`<div
|
|
10
|
-
part="wrapper"
|
|
11
|
-
class=${multiClassMap(classes)}
|
|
12
|
-
@focusout=${props.onFocusout}
|
|
13
|
-
>
|
|
9
|
+
return html`<div part="wrapper" class=${multiClassMap(classes)} @focusout=${props.onFocusout}>
|
|
14
10
|
${children}
|
|
15
11
|
</div>`;
|
|
16
12
|
};
|
|
@@ -4,10 +4,7 @@ import search_slim from "../../../images/search-slim.js";
|
|
|
4
4
|
import { renderButton } from "../button.js";
|
|
5
5
|
const renderSubmitButton = ({ props })=>{
|
|
6
6
|
const { i18n, disabled, onClick } = props;
|
|
7
|
-
return html`<div
|
|
8
|
-
part="submit-button-wrapper"
|
|
9
|
-
class="mr-2 flex items-center justify-center py-2"
|
|
10
|
-
>
|
|
7
|
+
return html`<div part="submit-button-wrapper" class="mr-2 flex items-center justify-center py-2">
|
|
11
8
|
${renderButton({
|
|
12
9
|
props: {
|
|
13
10
|
style: 'text-primary',
|
|
@@ -19,11 +16,7 @@ const renderSubmitButton = ({ props })=>{
|
|
|
19
16
|
},
|
|
20
17
|
disabled
|
|
21
18
|
}
|
|
22
|
-
})(html`<atomic-icon
|
|
23
|
-
part="submit-icon"
|
|
24
|
-
icon=${search_slim}
|
|
25
|
-
class="h-4 w-4"
|
|
26
|
-
></atomic-icon>`)}
|
|
19
|
+
})(html`<atomic-icon part="submit-icon" icon=${search_slim} class="h-4 w-4"></atomic-icon>`)}
|
|
27
20
|
</div>`;
|
|
28
21
|
};
|
|
29
22
|
export { renderSubmitButton };
|
|
@@ -18,10 +18,6 @@ const renderTextAreaClearButton = ({ props: { textAreaRef, i18n, onClick } })=>h
|
|
|
18
18
|
},
|
|
19
19
|
ariaLabel: i18n.t('clear-searchbox')
|
|
20
20
|
}
|
|
21
|
-
})(html`<atomic-icon
|
|
22
|
-
part="clear-icon"
|
|
23
|
-
icon=${clear_slim}
|
|
24
|
-
class="h-4 w-4"
|
|
25
|
-
></atomic-icon>`)}
|
|
21
|
+
})(html`<atomic-icon part="clear-icon" icon=${clear_slim} class="h-4 w-4"></atomic-icon>`)}
|
|
26
22
|
</div>`;
|
|
27
23
|
export { renderTextAreaClearButton };
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { html } from "lit";
|
|
2
|
-
const renderSnippetFooter = ({ props })=>(children)=>html`<footer
|
|
3
|
-
part="footer"
|
|
4
|
-
aria-label=${props.i18n.t('smart-snippet-source')}
|
|
5
|
-
>
|
|
2
|
+
const renderSnippetFooter = ({ props })=>(children)=>html`<footer part="footer" aria-label=${props.i18n.t('smart-snippet-source')}>
|
|
6
3
|
${children}
|
|
7
4
|
</footer>`;
|
|
8
5
|
export { renderSnippetFooter };
|
package/dist/esm/components/common/smart-snippets/atomic-smart-snippet-feedback-modal/modal-body.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { html } from "lit";
|
|
2
|
-
const renderModalBody = ({ props: { formId, onSubmit } })=>(children)=>html`<form
|
|
3
|
-
part="form"
|
|
4
|
-
id=${formId}
|
|
5
|
-
slot="body"
|
|
6
|
-
@submit=${onSubmit}
|
|
7
|
-
class="flex flex-col gap-8"
|
|
8
|
-
>
|
|
2
|
+
const renderModalBody = ({ props: { formId, onSubmit } })=>(children)=>html`<form part="form" id=${formId} slot="body" @submit=${onSubmit} class="flex flex-col gap-8">
|
|
9
3
|
${children}
|
|
10
4
|
</form>`;
|
|
11
5
|
export { renderModalBody };
|
|
@@ -2,10 +2,7 @@ import { html } from "lit";
|
|
|
2
2
|
import { ref } from "lit/directives/ref.js";
|
|
3
3
|
import { when } from "lit/directives/when.js";
|
|
4
4
|
const renderModalDetails = ({ props: { currentAnswer, i18n, detailsInputRef } })=>when('other' === currentAnswer, ()=>html`<fieldset>
|
|
5
|
-
<legend
|
|
6
|
-
part="details-title"
|
|
7
|
-
class="text-on-background text-lg font-bold"
|
|
8
|
-
>
|
|
5
|
+
<legend part="details-title" class="text-on-background text-lg font-bold">
|
|
9
6
|
${i18n.t('details')}
|
|
10
7
|
</legend>
|
|
11
8
|
<textarea
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { html } from "lit";
|
|
2
|
-
const renderAnswerAndSourceWrapper = ({ props })=>(children)=>html`<div
|
|
3
|
-
part="answer-and-source"
|
|
4
|
-
class="pr-6 pb-6 pl-10"
|
|
5
|
-
id=${props.id}
|
|
6
|
-
>
|
|
2
|
+
const renderAnswerAndSourceWrapper = ({ props })=>(children)=>html`<div part="answer-and-source" class="pr-6 pb-6 pl-10" id=${props.id}>
|
|
7
3
|
${children}
|
|
8
4
|
</div>`;
|
|
9
5
|
export { renderAnswerAndSourceWrapper };
|
package/dist/esm/components/common/smart-snippets/atomic-smart-snippet-suggestions/footer.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { html } from "lit";
|
|
2
|
-
const renderFooter = ({ props })=>(children)=>html`<footer
|
|
3
|
-
part="footer"
|
|
4
|
-
aria-label=${props.i18n.t('smart-snippet-source')}
|
|
5
|
-
>
|
|
2
|
+
const renderFooter = ({ props })=>(children)=>html`<footer part="footer" aria-label=${props.i18n.t('smart-snippet-source')}>
|
|
6
3
|
${children}
|
|
7
4
|
</footer>`;
|
|
8
5
|
export { renderFooter };
|
|
@@ -70,10 +70,7 @@ const renderSmartSnippetFeedbackBanner = ({ props })=>{
|
|
|
70
70
|
ref: props.explainWhyRef
|
|
71
71
|
}
|
|
72
72
|
})(html`${props.i18n.t('smart-snippet-feedback-explain-why')}`);
|
|
73
|
-
const renderThankYouContainer = (visible)=>when(visible, ()=>html`<div
|
|
74
|
-
part="feedback-thank-you-wrapper"
|
|
75
|
-
class="flex flex-wrap gap-1"
|
|
76
|
-
>
|
|
73
|
+
const renderThankYouContainer = (visible)=>when(visible, ()=>html`<div part="feedback-thank-you-wrapper" class="flex flex-wrap gap-1">
|
|
77
74
|
${renderThankYouMessage()}
|
|
78
75
|
${when(props.disliked && !props.feedbackSent, ()=>renderExplainWhyButton())}
|
|
79
76
|
</div>`);
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { html } from "lit";
|
|
2
|
-
const renderSortLabel = ({ props: { i18n, id } })=>html`<label
|
|
3
|
-
class="m-2 cursor-pointer text-sm font-bold"
|
|
4
|
-
part="label"
|
|
5
|
-
for=${id}
|
|
6
|
-
>
|
|
2
|
+
const renderSortLabel = ({ props: { i18n, id } })=>html`<label class="m-2 cursor-pointer text-sm font-bold" part="label" for=${id}>
|
|
7
3
|
${i18n.t('with-colon', {
|
|
8
4
|
text: i18n.t('sort-by')
|
|
9
5
|
})}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import { html } from "lit";
|
|
2
|
-
const renderSortOption = ({ props: { value, selected, i18n, label } })=>html`
|
|
3
|
-
<option value=${value} ?selected=${selected}>${i18n.t(label)}</option>
|
|
4
|
-
`;
|
|
2
|
+
const renderSortOption = ({ props: { value, selected, i18n, label } })=>html` <option value=${value} ?selected=${selected}>${i18n.t(label)}</option> `;
|
|
5
3
|
export { renderSortOption };
|
|
@@ -15,10 +15,7 @@ const getPartialSearchBoxSuggestionElement = (suggestion, i18n)=>({
|
|
|
15
15
|
const renderQuerySuggestion = ({ icon, hasQuery, suggestion, hasMultipleKindOfSuggestions, alwaysShowIcon = false })=>{
|
|
16
16
|
const shouldShowIcon = alwaysShowIcon || hasMultipleKindOfSuggestions;
|
|
17
17
|
const template = html`
|
|
18
|
-
<div
|
|
19
|
-
part="query-suggestion-content"
|
|
20
|
-
class="pointer-events-none flex items-center"
|
|
21
|
-
>
|
|
18
|
+
<div part="query-suggestion-content" class="pointer-events-none flex items-center">
|
|
22
19
|
${shouldShowIcon ? html`<atomic-icon
|
|
23
20
|
part="query-suggestion-icon"
|
|
24
21
|
icon=${icon}
|
|
@@ -30,11 +30,7 @@ const renderRecentQuery = ({ icon, query, value })=>{
|
|
|
30
30
|
part="recent-query-content"
|
|
31
31
|
class="pointer-events-none flex items-center text-left break-all"
|
|
32
32
|
>
|
|
33
|
-
<atomic-icon
|
|
34
|
-
part="recent-query-icon"
|
|
35
|
-
icon=${icon}
|
|
36
|
-
class="mr-2 h-4 w-4 shrink-0"
|
|
37
|
-
></atomic-icon>
|
|
33
|
+
<atomic-icon part="recent-query-icon" icon=${icon} class="mr-2 h-4 w-4 shrink-0"></atomic-icon>
|
|
38
34
|
|
|
39
35
|
${when(hasQuery, ()=>html`<span
|
|
40
36
|
part="recent-query-text"
|
|
@@ -50,9 +46,7 @@ const renderRecentQuery = ({ icon, query, value })=>{
|
|
|
50
46
|
}
|
|
51
47
|
]
|
|
52
48
|
})}
|
|
53
|
-
></span>`, ()=>html`<span part="recent-query-text" class="line-clamp-2 break-all">
|
|
54
|
-
${value}
|
|
55
|
-
</span>`)}
|
|
49
|
+
></span>`, ()=>html`<span part="recent-query-text" class="line-clamp-2 break-all"> ${value} </span>`)}
|
|
56
50
|
</div>`;
|
|
57
51
|
const container = document.createElement('div');
|
|
58
52
|
render(template, container);
|
|
@@ -63,9 +57,7 @@ const renderRecentQueryClear = ({ i18n })=>{
|
|
|
63
57
|
part="recent-query-title-content"
|
|
64
58
|
class="pointer-events-none flex w-full justify-between"
|
|
65
59
|
>
|
|
66
|
-
<span class="font-bold" part="recent-query-title">
|
|
67
|
-
${i18n.t('recent-searches')}
|
|
68
|
-
</span>
|
|
60
|
+
<span class="font-bold" part="recent-query-title"> ${i18n.t('recent-searches')} </span>
|
|
69
61
|
<span part="recent-query-clear">${i18n.t('clear')}</span>
|
|
70
62
|
</div>`;
|
|
71
63
|
const container = document.createElement('div');
|
|
@@ -73,9 +73,7 @@ class AtomicInsightFacet extends LitElement {
|
|
|
73
73
|
return this.facetState.enabled && !this.searchStatusState.hasError && (!this.searchStatusState.firstSearchExecuted || this.facetState.values.length > 0);
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
|
-
return html`${when(this.shouldRenderFacet(), ()=>this.searchStatusState.firstSearchExecuted ? renderFacetContainer()(html`
|
|
77
|
-
${this.renderFacetHeader()} ${this.renderBody()}
|
|
78
|
-
`) : html`<atomic-facet-placeholder
|
|
76
|
+
return html`${when(this.shouldRenderFacet(), ()=>this.searchStatusState.firstSearchExecuted ? renderFacetContainer()(html` ${this.renderFacetHeader()} ${this.renderBody()} `) : html`<atomic-facet-placeholder
|
|
79
77
|
value-count="${this.numberOfValues}"
|
|
80
78
|
?is-collapsed="${this.isCollapsed}"
|
|
81
79
|
></atomic-facet-placeholder>`)}`;
|
|
@@ -109,10 +107,7 @@ class AtomicInsightFacet extends LitElement {
|
|
|
109
107
|
i18n: this.bindings.i18n,
|
|
110
108
|
label: this.label
|
|
111
109
|
}
|
|
112
|
-
})(html`<ul
|
|
113
|
-
class="mt-3 ${'box' === this.displayValuesAs ? 'box-container' : ''}"
|
|
114
|
-
part="values"
|
|
115
|
-
>
|
|
110
|
+
})(html`<ul class="mt-3 ${'box' === this.displayValuesAs ? 'box-container' : ''}" part="values">
|
|
116
111
|
${children}
|
|
117
112
|
</ul>`);
|
|
118
113
|
}
|
|
@@ -149,17 +149,17 @@ class AtomicInsightFoldedResultList extends ChildrenUpdateCompleteMixin(LitEleme
|
|
|
149
149
|
}
|
|
150
150
|
renderList() {
|
|
151
151
|
return html`${map(this.foldedResultListState.results, (collection, index)=>html`${keyed(this.getResultId(collection), html`<atomic-insight-result
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
152
|
+
part="outline"
|
|
153
|
+
${ref((element)=>element instanceof HTMLElement && this.resultListCommon.setNewResultRef(element, index))}
|
|
154
|
+
.content=${this.getContent(collection)}
|
|
155
|
+
.density=${this.density}
|
|
156
|
+
.imageSize=${this.imageSize}
|
|
157
|
+
.interactiveResult=${this.getInteractiveResult(collection)}
|
|
158
|
+
.loadingFlag=${this.loadingFlag}
|
|
159
|
+
.result=${collection}
|
|
160
|
+
.renderingFunction=${this.itemRenderingFunction}
|
|
161
|
+
.store=${this.bindings.store}
|
|
162
|
+
></atomic-insight-result>`)}`)}`;
|
|
163
163
|
}
|
|
164
164
|
get focusTarget() {
|
|
165
165
|
if (!this.nextNewResultTarget) this.nextNewResultTarget = new FocusTargetController(this, this.bindings);
|
|
@@ -35,8 +35,7 @@ class AtomicInsightNoResults extends LitElement {
|
|
|
35
35
|
firstSearchExecuted: this.searchStatusState.firstSearchExecuted,
|
|
36
36
|
hasResults: this.searchStatusState.hasResults
|
|
37
37
|
}, ()=>renderNoItemsContainer()(html`
|
|
38
|
-
${renderMagnifyingGlass()} ${this.renderNoItems()}
|
|
39
|
-
${this.renderSearchTips()}
|
|
38
|
+
${renderMagnifyingGlass()} ${this.renderNoItems()} ${this.renderSearchTips()}
|
|
40
39
|
`))}`;
|
|
41
40
|
}
|
|
42
41
|
renderNoItems() {
|
|
@@ -68,9 +68,7 @@ class AtomicInsightResult extends ChildrenUpdateCompleteMixin(LitElement) {
|
|
|
68
68
|
if (void 0 !== this.renderingFunction) return html` <div class="result-root" ${ref(this.resultRootRef)}></div> `;
|
|
69
69
|
if (!this.itemLayoutController.getLayout()) return nothing;
|
|
70
70
|
return html`
|
|
71
|
-
<div
|
|
72
|
-
class="result-root ${this.itemLayoutController.getCombinedClasses().join(' ')}"
|
|
73
|
-
>
|
|
71
|
+
<div class="result-root ${this.itemLayoutController.getCombinedClasses().join(' ')}">
|
|
74
72
|
${unsafeHTML(this.getContentHTML())}
|
|
75
73
|
</div>
|
|
76
74
|
`;
|
|
@@ -60,9 +60,7 @@ class AtomicInsightUserActionsModal extends LitElement {
|
|
|
60
60
|
renderHeader() {
|
|
61
61
|
return html`
|
|
62
62
|
<div slot="header" class="contents">
|
|
63
|
-
<div part="title" class="font-light truncate">
|
|
64
|
-
${this.bindings.i18n.t('user-actions')}
|
|
65
|
-
</div>
|
|
63
|
+
<div part="title" class="font-light truncate">${this.bindings.i18n.t('user-actions')}</div>
|
|
66
64
|
${renderButton({
|
|
67
65
|
props: {
|
|
68
66
|
style: 'text-transparent',
|
|
@@ -74,11 +72,7 @@ class AtomicInsightUserActionsModal extends LitElement {
|
|
|
74
72
|
ariaLabel: this.bindings.i18n.t('close')
|
|
75
73
|
}
|
|
76
74
|
})(html`
|
|
77
|
-
<atomic-icon
|
|
78
|
-
part="close-icon"
|
|
79
|
-
class="w-5 h-5"
|
|
80
|
-
.icon=${images_close}
|
|
81
|
-
></atomic-icon>
|
|
75
|
+
<atomic-icon part="close-icon" class="w-5 h-5" .icon=${images_close}></atomic-icon>
|
|
82
76
|
`)}
|
|
83
77
|
</div>
|
|
84
78
|
`;
|
|
@@ -49,10 +49,7 @@ class AtomicInsightUserActionsSession extends LitElement {
|
|
|
49
49
|
const date = dayjs(this.startTimestamp);
|
|
50
50
|
const formatedStartDate = date.format('ddd. MMMM D, YYYY');
|
|
51
51
|
return html`
|
|
52
|
-
<div
|
|
53
|
-
data-testid="session-start-date-container"
|
|
54
|
-
class="flex items-center px-2 pb-3"
|
|
55
|
-
>
|
|
52
|
+
<div data-testid="session-start-date-container" class="flex items-center px-2 pb-3">
|
|
56
53
|
${when(this.isCaseCreationSession, ()=>html`
|
|
57
54
|
<div
|
|
58
55
|
part="session-start-icon__container"
|
|
@@ -83,10 +80,7 @@ class AtomicInsightUserActionsSession extends LitElement {
|
|
|
83
80
|
count: this.userActionsAfterCaseCreation.length
|
|
84
81
|
});
|
|
85
82
|
return html`
|
|
86
|
-
<div
|
|
87
|
-
data-testid="show-more-actions-button"
|
|
88
|
-
class="flex items-center px-3 pb-3"
|
|
89
|
-
>
|
|
83
|
+
<div data-testid="show-more-actions-button" class="flex items-center px-3 pb-3">
|
|
90
84
|
<div class="flex justify-center pr-2">
|
|
91
85
|
<atomic-icon icon=${three_dots} class="h-3 w-3"></atomic-icon>
|
|
92
86
|
</div>
|
|
@@ -36,9 +36,7 @@ const renderUserAction = ({ props })=>{
|
|
|
36
36
|
const renderActionTitle = ()=>{
|
|
37
37
|
switch(props.action.actionType){
|
|
38
38
|
case 'TICKET_CREATION':
|
|
39
|
-
return html`<div
|
|
40
|
-
class="ticket-creation-action__text text-xs font-semibold"
|
|
41
|
-
>
|
|
39
|
+
return html`<div class="ticket-creation-action__text text-xs font-semibold">
|
|
42
40
|
${props.bindings.i18n.t('ticket-created')}
|
|
43
41
|
</div>`;
|
|
44
42
|
case 'CUSTOM':
|
|
@@ -58,9 +56,7 @@ const renderUserAction = ({ props })=>{
|
|
|
58
56
|
${props.action.document?.title}
|
|
59
57
|
</a>`;
|
|
60
58
|
case 'CLICK':
|
|
61
|
-
return html`<div class="text-xs font-semibold"
|
|
62
|
-
${props.action.document?.title}
|
|
63
|
-
</div>`;
|
|
59
|
+
return html`<div class="text-xs font-semibold">${props.action.document?.title}</div>`;
|
|
64
60
|
default:
|
|
65
61
|
return nothing;
|
|
66
62
|
}
|
|
@@ -7,13 +7,8 @@ const renderIpxBody = ({ props })=>{
|
|
|
7
7
|
class="ipx-body-container bg-background box-border flex flex-col justify-between overflow-hidden rounded ${visibilityClass}"
|
|
8
8
|
@animationend=${()=>props.onAnimationEnd?.()}
|
|
9
9
|
>
|
|
10
|
-
<header
|
|
11
|
-
part="header-
|
|
12
|
-
class="bg-neutral-light grid w-full items-center px-6 pt-6"
|
|
13
|
-
>
|
|
14
|
-
<div part="header" class="min-w-0 font-bold">
|
|
15
|
-
${props.header ?? nothing}
|
|
16
|
-
</div>
|
|
10
|
+
<header part="header-wrapper" class="bg-neutral-light grid w-full items-center px-6 pt-6">
|
|
11
|
+
<div part="header" class="min-w-0 font-bold">${props.header ?? nothing}</div>
|
|
17
12
|
</header>
|
|
18
13
|
<hr part="header-ruler" class="border-neutral border-0 border-t" />
|
|
19
14
|
<div
|
|
@@ -44,14 +44,8 @@ class AtomicIpxButton extends LitElement {
|
|
|
44
44
|
}
|
|
45
45
|
})(html`
|
|
46
46
|
<span part="button-icon">
|
|
47
|
-
<atomic-icon
|
|
48
|
-
|
|
49
|
-
.icon=${this.getIcon(this.closeIcon)}
|
|
50
|
-
></atomic-icon>
|
|
51
|
-
<atomic-icon
|
|
52
|
-
part="ipx-open-icon"
|
|
53
|
-
.icon=${this.getIcon(this.openIcon)}
|
|
54
|
-
></atomic-icon>
|
|
47
|
+
<atomic-icon part="ipx-close-icon" .icon=${this.getIcon(this.closeIcon)}></atomic-icon>
|
|
48
|
+
<atomic-icon part="ipx-open-icon" .icon=${this.getIcon(this.openIcon)}></atomic-icon>
|
|
55
49
|
</span>
|
|
56
50
|
${when(this.label, ()=>html`<span part="button-text">${this.label}</span>`)}
|
|
57
51
|
`);
|
|
@@ -84,9 +78,7 @@ class AtomicIpxButton extends LitElement {
|
|
|
84
78
|
}
|
|
85
79
|
}
|
|
86
80
|
</style>
|
|
87
|
-
<div class="flex flex-col items-center" part="container">
|
|
88
|
-
${this.renderIPXButton()}
|
|
89
|
-
</div>
|
|
81
|
+
<div class="flex flex-col items-center" part="container">${this.renderIPXButton()}</div>
|
|
90
82
|
`;
|
|
91
83
|
}
|
|
92
84
|
get ipxModal() {
|
|
@@ -194,10 +194,7 @@ class AtomicIpxRecsList extends ChildrenUpdateCompleteMixin(LitElement) {
|
|
|
194
194
|
if (!this.label) return nothing;
|
|
195
195
|
if (this.recommendationListStateWithAugment.hasError) return nothing;
|
|
196
196
|
if (!this.isEveryResultReady && this.isAppLoaded) return html`
|
|
197
|
-
<div
|
|
198
|
-
aria-hidden="true"
|
|
199
|
-
class="bg-neutral my-2 h-8 w-60 animate-pulse rounded"
|
|
200
|
-
></div>
|
|
197
|
+
<div aria-hidden="true" class="bg-neutral my-2 h-8 w-60 animate-pulse rounded"></div>
|
|
201
198
|
`;
|
|
202
199
|
if (this.recommendationListStateWithAugment.firstRequestExecuted && !this.recommendationListStateWithAugment.hasItems) return nothing;
|
|
203
200
|
return html`${renderHeading({
|
|
@@ -76,10 +76,7 @@ class AtomicIpxResultLink extends LightDomMixin(SlotsForNoShadowDOMMixin(LitElem
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
})(html`
|
|
79
|
-
${this.renderDefaultSlotContent(html`<atomic-result-text
|
|
80
|
-
field="title"
|
|
81
|
-
default="no-title"
|
|
82
|
-
></atomic-result-text>`)}
|
|
79
|
+
${this.renderDefaultSlotContent(html`<atomic-result-text field="title" default="no-title"></atomic-result-text>`)}
|
|
83
80
|
`);
|
|
84
81
|
})}`;
|
|
85
82
|
}
|
|
@@ -93,8 +93,7 @@ class AtomicAutomaticFacet extends InitializeBindingsMixin(LitElement) {
|
|
|
93
93
|
render() {
|
|
94
94
|
if (this.searchStatus.state.hasError) return nothing;
|
|
95
95
|
return renderFacetContainer()(html`
|
|
96
|
-
${this.renderHeader()}
|
|
97
|
-
${when(!this.isCollapsed, ()=>this.renderValues())}
|
|
96
|
+
${this.renderHeader()} ${when(!this.isCollapsed, ()=>this.renderValues())}
|
|
98
97
|
`);
|
|
99
98
|
}
|
|
100
99
|
constructor(...args){
|
|
@@ -54,14 +54,14 @@ class AtomicAutomaticFacetGenerator extends LightDomMixin(LitElement) {
|
|
|
54
54
|
renderAutomaticFacets() {
|
|
55
55
|
if (0 === this.automaticFacetGeneratorState.automaticFacets.length) return nothing;
|
|
56
56
|
return html`${this.automaticFacetGeneratorState.automaticFacets.map((facet, index)=>keyed(facet.state.field, html`
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
<atomic-automatic-facet
|
|
58
|
+
.field=${facet.state.field}
|
|
59
|
+
.facetId=${facet.state.field}
|
|
60
|
+
.facet=${facet}
|
|
61
|
+
.searchStatus=${this.searchStatus}
|
|
62
|
+
?isCollapsed=${this.shouldCollapseFacet(index)}
|
|
63
|
+
></atomic-automatic-facet>
|
|
64
|
+
`))}`;
|
|
65
65
|
}
|
|
66
66
|
shouldCollapseFacet(index) {
|
|
67
67
|
if (-1 === this.collapseFacetsAfter) return false;
|
|
@@ -224,11 +224,9 @@ class AtomicCategoryFacet extends LitElement {
|
|
|
224
224
|
this.focusTargets.activeValueFocus.setTarget(el);
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
})(html`
|
|
228
|
-
${renderCategoryFacetChildrenAsTreeContainer({
|
|
227
|
+
})(html` ${renderCategoryFacetChildrenAsTreeContainer({
|
|
229
228
|
props: {}
|
|
230
|
-
})(this.renderChildren())}
|
|
231
|
-
`)}
|
|
229
|
+
})(this.renderChildren())} `)}
|
|
232
230
|
`;
|
|
233
231
|
}
|
|
234
232
|
renderChild(facetValue, isShowLessFocusTarget, isShowMoreFocusTarget) {
|
|
@@ -71,9 +71,7 @@ class AtomicColorFacet extends LitElement {
|
|
|
71
71
|
return this.searchStatusState && !this.searchStatusState.hasError && this.facetState?.enabled && (!this.searchStatusState.firstSearchExecuted || this.facetState.values.length > 0);
|
|
72
72
|
}
|
|
73
73
|
render() {
|
|
74
|
-
return html`${when(this.shouldRenderFacet(), ()=>this.searchStatusState.firstSearchExecuted ? renderFacetContainer()(html`
|
|
75
|
-
${this.renderFacetHeader()} ${this.renderBody()}
|
|
76
|
-
`) : renderFacetPlaceholder({
|
|
74
|
+
return html`${when(this.shouldRenderFacet(), ()=>this.searchStatusState.firstSearchExecuted ? renderFacetContainer()(html` ${this.renderFacetHeader()} ${this.renderBody()} `) : renderFacetPlaceholder({
|
|
77
75
|
props: {
|
|
78
76
|
numberOfValues: this.numberOfValues,
|
|
79
77
|
isCollapsed: this.isCollapsed
|
|
@@ -76,9 +76,7 @@ class AtomicFacet extends LitElement {
|
|
|
76
76
|
return !this.searchStatusState.hasError && this.facetState.enabled && (!this.searchStatusState.firstSearchExecuted || this.facetState.values.length > 0);
|
|
77
77
|
}
|
|
78
78
|
render() {
|
|
79
|
-
return html`${when(this.shouldRenderFacet(), ()=>this.searchStatusState.firstSearchExecuted ? renderFacetContainer()(html`
|
|
80
|
-
${this.renderFacetHeader()} ${this.renderBody()}
|
|
81
|
-
`) : html`<atomic-facet-placeholder
|
|
79
|
+
return html`${when(this.shouldRenderFacet(), ()=>this.searchStatusState.firstSearchExecuted ? renderFacetContainer()(html` ${this.renderFacetHeader()} ${this.renderBody()} `) : html`<atomic-facet-placeholder
|
|
82
80
|
value-count="${this.numberOfValues}"
|
|
83
81
|
></atomic-facet-placeholder>`)}`;
|
|
84
82
|
}
|
|
@@ -165,18 +165,18 @@ class AtomicFoldedResultList extends ChildrenUpdateCompleteMixin(LitElement) {
|
|
|
165
165
|
}
|
|
166
166
|
renderList() {
|
|
167
167
|
return html`${map(this.foldedResultListState.results, (collection, index)=>html`${keyed(this.getResultId(collection), html`<atomic-result
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
168
|
+
part="outline"
|
|
169
|
+
${ref((element)=>element instanceof HTMLElement && this.resultListCommon.setNewResultRef(element, index))}
|
|
170
|
+
.content=${this.getContent(collection)}
|
|
171
|
+
.density=${this.density}
|
|
172
|
+
.display=${this.display}
|
|
173
|
+
.imageSize=${this.imageSize}
|
|
174
|
+
.interactiveResult=${this.getInteractiveResult(collection)}
|
|
175
|
+
.loadingFlag=${this.loadingFlag}
|
|
176
|
+
.result=${collection}
|
|
177
|
+
.renderingFunction=${this.itemRenderingFunction}
|
|
178
|
+
.store=${this.bindings.store}
|
|
179
|
+
></atomic-result>`)}`)}`;
|
|
180
180
|
}
|
|
181
181
|
get focusTarget() {
|
|
182
182
|
if (!this.nextNewResultTarget) this.nextNewResultTarget = new FocusTargetController(this, this.bindings);
|
|
@@ -38,8 +38,8 @@ class AtomicNoResults extends LitElement {
|
|
|
38
38
|
firstSearchExecuted: this.searchStatusState.firstSearchExecuted,
|
|
39
39
|
hasResults: this.searchStatusState.hasResults
|
|
40
40
|
}, ()=>renderNoItemsContainer()(html`
|
|
41
|
-
${renderMagnifyingGlass()} ${this.renderNoItems()}
|
|
42
|
-
${this.
|
|
41
|
+
${renderMagnifyingGlass()} ${this.renderNoItems()} ${this.renderSearchTips()}
|
|
42
|
+
${this.renderCancelButton()}
|
|
43
43
|
`))}`;
|
|
44
44
|
}
|
|
45
45
|
renderNoItems() {
|
|
@@ -81,9 +81,7 @@ class AtomicNotifications extends InitializeBindingsMixin(LitElement) {
|
|
|
81
81
|
part="icon"
|
|
82
82
|
class="text-neutral-dark mr-6 h-7 w-7"
|
|
83
83
|
></atomic-icon>
|
|
84
|
-
<span part="text" class="text-on-background text-base leading-5">
|
|
85
|
-
${text}
|
|
86
|
-
</span>
|
|
84
|
+
<span part="text" class="text-on-background text-base leading-5"> ${text} </span>
|
|
87
85
|
</div>
|
|
88
86
|
`;
|
|
89
87
|
}
|
|
@@ -114,13 +114,7 @@ class AtomicPopover extends LitElement {
|
|
|
114
114
|
class: buttonClassString
|
|
115
115
|
}
|
|
116
116
|
})(html`
|
|
117
|
-
<span
|
|
118
|
-
title=${label}
|
|
119
|
-
part="value-label"
|
|
120
|
-
class=${multiClassMap(labelClasses)}
|
|
121
|
-
>
|
|
122
|
-
${label}
|
|
123
|
-
</span>
|
|
117
|
+
<span title=${label} part="value-label" class=${multiClassMap(labelClasses)}> ${label} </span>
|
|
124
118
|
<span part="value-count" class=${multiClassMap(countClasses)}>
|
|
125
119
|
${this.bindings.i18n.t('between-parentheses', {
|
|
126
120
|
text: count
|