@coveo/atomic 3.49.0 → 3.51.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 +2257 -369
- package/dist/atomic/_atomic.esm.js +1 -1
- package/dist/atomic/atomic.esm.js.map +1 -1
- package/dist/atomic/components/_index.d.ts +0 -10
- package/dist/atomic/components/_index.js +2 -8
- package/dist/atomic/components/atomic-insight-result-action.js +123 -6
- package/dist/atomic/components/atomic-insight-result-action.js.map +1 -1
- package/dist/atomic/components/atomic-insight-result-children-template.js +1 -2
- package/dist/atomic/components/atomic-insight-result-children-template.js.map +1 -1
- package/dist/atomic/components/atomic-insight-timeframe-facet.js +97 -7
- package/dist/atomic/components/atomic-insight-timeframe-facet.js.map +1 -1
- package/dist/atomic/components/atomic-stencil-facet-date-input.js +3 -3
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +4 -4
- package/dist/atomic/components/components/common/generated-answer/render-feedback-and-copy-buttons.js +4 -3
- package/dist/atomic/components/components/insight/atomic-insight-generated-answer/atomic-insight-generated-answer.js +444 -0
- package/dist/atomic/components/components/insight/atomic-insight-generated-answer/atomic-insight-generated-answer.tw.css.js +2 -0
- package/dist/atomic/components/components/insight/atomic-insight-result-attach-to-case-action/atomic-insight-result-attach-to-case-action.js +122 -0
- package/dist/atomic/components/components/insight/atomic-insight-result-children/atomic-insight-result-children.js +4 -4
- package/dist/atomic/components/components/insight/index.js +2 -0
- package/dist/atomic/components/components/insight/lazy-index.js +2 -0
- package/dist/atomic/components/components/ipx/atomic-ipx-button/atomic-ipx-button.js +1 -1
- package/dist/atomic/components/components/ipx/atomic-ipx-recs-list/atomic-ipx-recs-list.js +483 -0
- package/dist/atomic/components/components/ipx/atomic-ipx-refine-modal/atomic-ipx-refine-modal.js +202 -0
- package/dist/atomic/components/components/ipx/atomic-ipx-refine-toggle/atomic-ipx-refine-toggle.js +123 -0
- package/dist/atomic/components/components/ipx/index.js +3 -0
- package/dist/atomic/components/components/ipx/lazy-index.js +3 -0
- package/dist/atomic/components/components/recommendations/atomic-recs-result/atomic-recs-result.js +1 -0
- package/dist/atomic/components/components/search/atomic-generated-answer/atomic-generated-answer.js +7 -1
- package/dist/atomic/components/components/search/atomic-refine-modal/atomic-refine-modal.js +2 -1
- package/dist/atomic/components/components/search/atomic-search-box/atomic-search-box.js +4 -4
- package/dist/atomic/components/global/environment.js +1 -1
- package/dist/atomic/components/index.js.map +1 -1
- package/dist/atomic/components/props-utils.js +1402 -2
- package/dist/atomic/components/props-utils.js.map +1 -1
- package/dist/atomic/components/utils/custom-element-tags.js +7 -0
- package/dist/atomic/components/utils/tailwind.global.tw.css.js +4 -4
- package/dist/atomic/index.esm.js +1 -1
- package/dist/atomic/p-1df0744f.entry.js +9 -0
- package/dist/atomic/p-1df0744f.entry.js.map +1 -0
- package/dist/atomic/{p-4a32511f.js → p-2045a1b1.js} +2 -2
- package/dist/atomic/p-500bf5c4.entry.js +2 -0
- package/dist/atomic/{p-4117289b.entry.js.map → p-500bf5c4.entry.js.map} +1 -1
- package/dist/atomic/p-5226a938.js +3 -0
- package/dist/atomic/p-5226a938.js.map +1 -0
- package/dist/atomic/{p-b4cfedf1.js → p-720863c3.js} +2 -2
- package/dist/atomic/p-81336626.entry.js +2 -0
- package/dist/atomic/p-81336626.entry.js.map +1 -0
- package/dist/atomic/p-aad3b4ec.js +3 -0
- package/dist/atomic/p-aad3b4ec.js.map +1 -0
- package/dist/atomic/{p-0698ccf1.entry.js → p-b5af331b.entry.js} +2 -2
- package/dist/atomic/{p-677f9c40.js → p-b7209471.js} +2 -2
- package/dist/cjs/_index.cjs.js +2 -2
- package/dist/cjs/_loader.cjs.js +2 -2
- package/dist/cjs/atomic-insight-result-action.cjs.entry.js +22 -9
- package/dist/cjs/atomic-insight-result-action.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-result-children-template.cjs.entry.js +6 -7
- package/dist/cjs/atomic-insight-result-children-template.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-timeframe-facet.cjs.entry.js +106 -16
- package/dist/cjs/atomic-insight-timeframe-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-stencil-facet-date-input.cjs.entry.js +5 -5
- package/dist/cjs/atomic.cjs.js +2 -2
- package/dist/cjs/{index-3532822e.js → index-122375df.js} +4 -58
- package/dist/cjs/index-122375df.js.map +1 -0
- package/dist/cjs/{initialization-utils-51a423fe.js → initialization-utils-c2821271.js} +2 -2
- package/dist/cjs/{initialization-utils-51a423fe.js.map → initialization-utils-c2821271.js.map} +1 -1
- package/dist/cjs/{utils-e845f262.js → props-utils-e4f29f1e.js} +54 -21
- package/dist/cjs/props-utils-e4f29f1e.js.map +1 -0
- package/dist/cjs/{stencil-button-f39da03e.js → stencil-button-bf22eea4.js} +2 -2
- package/dist/cjs/{stencil-button-f39da03e.js.map → stencil-button-bf22eea4.js.map} +1 -1
- package/dist/cjs/{stencil-result-template-decorators-1f099c15.js → stencil-result-template-decorators-96954751.js} +2 -2
- package/dist/cjs/{stencil-result-template-decorators-1f099c15.js.map → stencil-result-template-decorators-96954751.js.map} +1 -1
- package/dist/cjs/version.cjs.js +2 -2
- package/dist/esm/_index.js +3 -3
- package/dist/esm/_loader.js +3 -3
- package/dist/esm/atomic-insight-result-action.entry.js +20 -7
- package/dist/esm/atomic-insight-result-action.entry.js.map +1 -1
- package/dist/esm/atomic-insight-result-children-template.entry.js +2 -3
- package/dist/esm/atomic-insight-result-children-template.entry.js.map +1 -1
- package/dist/esm/atomic-insight-timeframe-facet.entry.js +100 -10
- package/dist/esm/atomic-insight-timeframe-facet.entry.js.map +1 -1
- package/dist/esm/atomic-stencil-facet-date-input.entry.js +5 -5
- package/dist/esm/atomic.js +3 -3
- package/dist/esm/{index-3eb0b28e.js → index-4d679e44.js} +5 -58
- package/dist/{cjs/index-3532822e.js.map → esm/index-4d679e44.js.map} +1 -1
- package/dist/esm/{initialization-utils-82d28c63.js → initialization-utils-9ff399ff.js} +2 -2
- package/dist/esm/{initialization-utils-82d28c63.js.map → initialization-utils-9ff399ff.js.map} +1 -1
- package/dist/esm/{utils-b5bab369.js → props-utils-76043c82.js} +54 -18
- package/dist/esm/props-utils-76043c82.js.map +1 -0
- package/dist/esm/{stencil-button-c25899df.js → stencil-button-28de709c.js} +2 -2
- package/dist/esm/{stencil-button-c25899df.js.map → stencil-button-28de709c.js.map} +1 -1
- package/dist/esm/{stencil-result-template-decorators-9cbe1e1c.js → stencil-result-template-decorators-4c2e5132.js} +2 -2
- package/dist/esm/{stencil-result-template-decorators-9cbe1e1c.js.map → stencil-result-template-decorators-4c2e5132.js.map} +1 -1
- package/dist/esm/version.js +2 -2
- package/dist/types/components/common/generated-answer/answerContent/answer-content.d.ts +49 -0
- package/dist/types/components/common/generated-answer/generated-answer-thread-item/generated-answer-thread-item.d.ts +49 -0
- package/dist/types/components/common/generated-answer/render-feedback-and-copy-buttons.d.ts +8 -2
- package/dist/types/components/common/item-list/table-layout.d.ts +1 -1
- package/dist/types/components/insight/atomic-insight-generated-answer/atomic-insight-generated-answer.d.ts +54 -35
- package/dist/types/components/insight/atomic-insight-generated-answer/atomic-insight-generated-answer.tw.css.d.ts +2 -0
- package/dist/types/components/insight/atomic-insight-result-attach-to-case-action/atomic-insight-result-attach-to-case-action.d.ts +25 -20
- package/dist/types/components/insight/index.d.ts +2 -0
- package/dist/types/components/ipx/atomic-ipx-button/atomic-ipx-button.d.ts +1 -1
- package/dist/types/components/ipx/atomic-ipx-recs-list/{atomic-recs-list/atomic-ipx-recs-list.d.ts → atomic-ipx-recs-list.d.ts} +43 -21
- package/dist/types/components/ipx/atomic-ipx-refine-modal/atomic-ipx-refine-modal.d.ts +62 -15
- package/dist/types/components/ipx/atomic-ipx-refine-toggle/atomic-ipx-refine-toggle.d.ts +26 -11
- package/dist/types/components/ipx/index.d.ts +3 -0
- package/dist/types/components/recommendations/atomic-recs-result/atomic-recs-result.d.ts +1 -0
- package/dist/types/components/search/atomic-refine-modal/atomic-refine-modal.d.ts +4 -3
- package/dist/types/components.d.ts +0 -249
- package/docs/atomic-docs.json +1 -26
- package/package.json +4 -4
- package/dist/atomic/components/arrow-top-rounded.js +0 -7
- package/dist/atomic/components/arrow-top-rounded.js.map +0 -1
- package/dist/atomic/components/atomic-insight-generated-answer.d.ts +0 -11
- package/dist/atomic/components/atomic-insight-generated-answer.js +0 -3264
- package/dist/atomic/components/atomic-insight-generated-answer.js.map +0 -1
- package/dist/atomic/components/atomic-insight-result-attach-to-case-action.d.ts +0 -11
- package/dist/atomic/components/atomic-insight-result-attach-to-case-action.js +0 -102
- package/dist/atomic/components/atomic-insight-result-attach-to-case-action.js.map +0 -1
- package/dist/atomic/components/atomic-ipx-recs-list.d.ts +0 -11
- package/dist/atomic/components/atomic-ipx-recs-list.js +0 -631
- package/dist/atomic/components/atomic-ipx-recs-list.js.map +0 -1
- package/dist/atomic/components/atomic-ipx-refine-modal.d.ts +0 -11
- package/dist/atomic/components/atomic-ipx-refine-modal.js +0 -8
- package/dist/atomic/components/atomic-ipx-refine-modal.js.map +0 -1
- package/dist/atomic/components/atomic-ipx-refine-modal2.js +0 -162
- package/dist/atomic/components/atomic-ipx-refine-modal2.js.map +0 -1
- package/dist/atomic/components/atomic-ipx-refine-toggle.d.ts +0 -11
- package/dist/atomic/components/atomic-ipx-refine-toggle.js +0 -121
- package/dist/atomic/components/atomic-ipx-refine-toggle.js.map +0 -1
- package/dist/atomic/components/attach.js +0 -115
- package/dist/atomic/components/attach.js.map +0 -1
- package/dist/atomic/components/components/common/layout/display-options.js +0 -28
- package/dist/atomic/components/popover-type.js +0 -12
- package/dist/atomic/components/popover-type.js.map +0 -1
- package/dist/atomic/components/stencil-heading.js +0 -169
- package/dist/atomic/components/stencil-heading.js.map +0 -1
- package/dist/atomic/components/stencil-iconButton.js +0 -16
- package/dist/atomic/components/stencil-iconButton.js.map +0 -1
- package/dist/atomic/components/store.js +0 -13
- package/dist/atomic/components/store.js.map +0 -1
- package/dist/atomic/components/utils.js +0 -1421
- package/dist/atomic/components/utils.js.map +0 -1
- package/dist/atomic/p-2c08a419.entry.js +0 -2
- package/dist/atomic/p-2c08a419.entry.js.map +0 -1
- package/dist/atomic/p-4117289b.entry.js +0 -2
- package/dist/atomic/p-52d14165.entry.js +0 -2
- package/dist/atomic/p-52d14165.entry.js.map +0 -1
- package/dist/atomic/p-578d761c.js +0 -2
- package/dist/atomic/p-578d761c.js.map +0 -1
- package/dist/atomic/p-64f83898.entry.js +0 -2
- package/dist/atomic/p-64f83898.entry.js.map +0 -1
- package/dist/atomic/p-70cc18a1.js +0 -2
- package/dist/atomic/p-70cc18a1.js.map +0 -1
- package/dist/atomic/p-9c5ec170.js +0 -2
- package/dist/atomic/p-9c5ec170.js.map +0 -1
- package/dist/atomic/p-9dfe5ab1.js +0 -2
- package/dist/atomic/p-9dfe5ab1.js.map +0 -1
- package/dist/atomic/p-a33748a9.js +0 -2
- package/dist/atomic/p-a33748a9.js.map +0 -1
- package/dist/atomic/p-b09433bb.js +0 -3
- package/dist/atomic/p-b09433bb.js.map +0 -1
- package/dist/atomic/p-c8452548.entry.js +0 -2
- package/dist/atomic/p-c8452548.entry.js.map +0 -1
- package/dist/atomic/p-c95ac794.entry.js +0 -2
- package/dist/atomic/p-c95ac794.entry.js.map +0 -1
- package/dist/atomic/p-d75a4630.js +0 -2
- package/dist/atomic/p-d75a4630.js.map +0 -1
- package/dist/atomic/p-d8230482.entry.js +0 -9
- package/dist/atomic/p-d8230482.entry.js.map +0 -1
- package/dist/atomic/p-e94ba0e1.entry.js +0 -2
- package/dist/atomic/p-e94ba0e1.entry.js.map +0 -1
- package/dist/atomic/p-ec1c5f46.js +0 -3
- package/dist/atomic/p-ec1c5f46.js.map +0 -1
- package/dist/atomic/p-f321aab0.js +0 -2
- package/dist/atomic/p-f321aab0.js.map +0 -1
- package/dist/cjs/arrow-top-rounded-885250ea.js +0 -10
- package/dist/cjs/arrow-top-rounded-885250ea.js.map +0 -1
- package/dist/cjs/atomic-insight-generated-answer.cjs.entry.js +0 -3238
- package/dist/cjs/atomic-insight-generated-answer.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-insight-result-attach-to-case-action.cjs.entry.js +0 -90
- package/dist/cjs/atomic-insight-result-attach-to-case-action.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-ipx-recs-list.cjs.entry.js +0 -600
- package/dist/cjs/atomic-ipx-recs-list.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-ipx-refine-modal.cjs.entry.js +0 -143
- package/dist/cjs/atomic-ipx-refine-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-ipx-refine-toggle.cjs.entry.js +0 -99
- package/dist/cjs/atomic-ipx-refine-toggle.cjs.entry.js.map +0 -1
- package/dist/cjs/attach-19283bec.js +0 -10
- package/dist/cjs/attach-19283bec.js.map +0 -1
- package/dist/cjs/popover-type-22f285e1.js +0 -16
- package/dist/cjs/popover-type-22f285e1.js.map +0 -1
- package/dist/cjs/props-utils-bc5feb04.js +0 -59
- package/dist/cjs/props-utils-bc5feb04.js.map +0 -1
- package/dist/cjs/stencil-heading-ecec9ab3.js +0 -174
- package/dist/cjs/stencil-heading-ecec9ab3.js.map +0 -1
- package/dist/cjs/stencil-iconButton-f8b9fda0.js +0 -18
- package/dist/cjs/stencil-iconButton-f8b9fda0.js.map +0 -1
- package/dist/cjs/store-70fff5e6.js +0 -16
- package/dist/cjs/store-70fff5e6.js.map +0 -1
- package/dist/cjs/utils-e845f262.js.map +0 -1
- package/dist/esm/arrow-top-rounded-745b84a6.js +0 -7
- package/dist/esm/arrow-top-rounded-745b84a6.js.map +0 -1
- package/dist/esm/atomic-insight-generated-answer.entry.js +0 -3234
- package/dist/esm/atomic-insight-generated-answer.entry.js.map +0 -1
- package/dist/esm/atomic-insight-result-attach-to-case-action.entry.js +0 -86
- package/dist/esm/atomic-insight-result-attach-to-case-action.entry.js.map +0 -1
- package/dist/esm/atomic-ipx-recs-list.entry.js +0 -596
- package/dist/esm/atomic-ipx-recs-list.entry.js.map +0 -1
- package/dist/esm/atomic-ipx-refine-modal.entry.js +0 -139
- package/dist/esm/atomic-ipx-refine-modal.entry.js.map +0 -1
- package/dist/esm/atomic-ipx-refine-toggle.entry.js +0 -95
- package/dist/esm/atomic-ipx-refine-toggle.entry.js.map +0 -1
- package/dist/esm/attach-81bb8872.js +0 -8
- package/dist/esm/attach-81bb8872.js.map +0 -1
- package/dist/esm/index-3eb0b28e.js.map +0 -1
- package/dist/esm/popover-type-c85677ef.js +0 -12
- package/dist/esm/popover-type-c85677ef.js.map +0 -1
- package/dist/esm/props-utils-d343133b.js +0 -57
- package/dist/esm/props-utils-d343133b.js.map +0 -1
- package/dist/esm/stencil-heading-98a5f23f.js +0 -169
- package/dist/esm/stencil-heading-98a5f23f.js.map +0 -1
- package/dist/esm/stencil-iconButton-ed5804d3.js +0 -16
- package/dist/esm/stencil-iconButton-ed5804d3.js.map +0 -1
- package/dist/esm/store-50d170c8.js +0 -13
- package/dist/esm/store-50d170c8.js.map +0 -1
- package/dist/esm/utils-b5bab369.js.map +0 -1
- /package/dist/atomic/{p-4a32511f.js.map → p-2045a1b1.js.map} +0 -0
- /package/dist/atomic/{p-b4cfedf1.js.map → p-720863c3.js.map} +0 -0
- /package/dist/atomic/{p-0698ccf1.entry.js.map → p-b5af331b.entry.js.map} +0 -0
- /package/dist/atomic/{p-677f9c40.js.map → p-b7209471.js.map} +0 -0
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import { BreadcrumbManager, SearchStatus } from '@coveo/headless';
|
|
2
|
-
import {
|
|
1
|
+
import { type BreadcrumbManager, type SearchStatus } from '@coveo/headless';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
import type { Bindings } from "../../search/atomic-search-interface/atomic-search-interface";
|
|
4
|
+
import type { InitializableComponent } from "../../../decorators/types";
|
|
5
|
+
import "../atomic-ipx-refine-modal/atomic-ipx-refine-modal";
|
|
3
6
|
/**
|
|
4
|
-
*
|
|
7
|
+
* The `atomic-ipx-refine-toggle` component displays a button that, when clicked, opens a refine modal containing facets.
|
|
8
|
+
*
|
|
9
|
+
* @part ipx-refine-toggle-container - The container div element.
|
|
10
|
+
* @part ipx-refine-toggle-button - The button element.
|
|
11
|
+
* @part ipx-refine-toggle-icon - The filter icon within the button.
|
|
12
|
+
* @part ipx-refine-toggle-badge - The badge element displaying the number of active filters.
|
|
5
13
|
*/
|
|
6
|
-
export declare class
|
|
7
|
-
|
|
8
|
-
host: HTMLElement;
|
|
9
|
-
error: Error;
|
|
10
|
-
private breadcrumbManagerState;
|
|
11
|
-
private searchStatusState;
|
|
14
|
+
export declare class AtomicIpxRefineToggle extends LitElement implements InitializableComponent<Bindings> {
|
|
15
|
+
static styles: import("lit").CSSResult;
|
|
12
16
|
/**
|
|
13
17
|
* The number of expanded facets inside the refine modal.
|
|
14
18
|
* Remaining facets are automatically collapsed.
|
|
@@ -16,13 +20,24 @@ export declare class AtomicIPXRefineToggle {
|
|
|
16
20
|
* Using the value `0` collapses all facets.
|
|
17
21
|
*/
|
|
18
22
|
collapseFacetsAfter: number;
|
|
23
|
+
bindings: Bindings;
|
|
24
|
+
error: Error;
|
|
25
|
+
private breadcrumbManagerState;
|
|
19
26
|
breadcrumbManager: BreadcrumbManager;
|
|
27
|
+
private searchStatusState;
|
|
20
28
|
searchStatus: SearchStatus;
|
|
21
29
|
private modalRef?;
|
|
22
30
|
private buttonRef?;
|
|
31
|
+
private modalLoaded;
|
|
23
32
|
private get numberOfBreadcrumbs();
|
|
24
33
|
initialize(): void;
|
|
25
|
-
private enableModal;
|
|
26
34
|
private loadModal;
|
|
27
|
-
|
|
35
|
+
private openModal;
|
|
36
|
+
private handleClick;
|
|
37
|
+
render(): typeof import("lit-html").nothing | import("lit-html").TemplateResult;
|
|
38
|
+
}
|
|
39
|
+
declare global {
|
|
40
|
+
interface HTMLElementTagNameMap {
|
|
41
|
+
'atomic-ipx-refine-toggle': AtomicIpxRefineToggle;
|
|
42
|
+
}
|
|
28
43
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export { AtomicIpxButton } from './atomic-ipx-button/atomic-ipx-button.js';
|
|
2
2
|
export { AtomicIpxEmbedded } from './atomic-ipx-embedded/atomic-ipx-embedded.js';
|
|
3
3
|
export { AtomicIpxModal } from './atomic-ipx-modal/atomic-ipx-modal.js';
|
|
4
|
+
export { AtomicIpxRecsList } from './atomic-ipx-recs-list/atomic-ipx-recs-list.js';
|
|
5
|
+
export { AtomicIpxRefineModal } from './atomic-ipx-refine-modal/atomic-ipx-refine-modal.js';
|
|
6
|
+
export { AtomicIpxRefineToggle } from './atomic-ipx-refine-toggle/atomic-ipx-refine-toggle.js';
|
|
4
7
|
export { AtomicIpxResultLink } from './atomic-ipx-result-link/atomic-ipx-result-link.js';
|
|
5
8
|
export { AtomicIpxTab } from './atomic-ipx-tab/atomic-ipx-tab.js';
|
|
6
9
|
export { AtomicIpxTabs } from './atomic-ipx-tabs/atomic-ipx-tabs.js';
|
|
@@ -4,6 +4,7 @@ import type { DisplayConfig } from "../../common/item-list/context/item-display-
|
|
|
4
4
|
import { type ItemRenderingFunction } from "../../common/item-list/item-list-common";
|
|
5
5
|
import type { ItemDisplayDensity, ItemDisplayImageSize, ItemDisplayLayout } from "../../common/layout/item-layout-utils";
|
|
6
6
|
import type { RecsStore } from "../atomic-recs-interface/store";
|
|
7
|
+
import "../../search/atomic-result-link/atomic-result-link";
|
|
7
8
|
declare const AtomicRecsResult_base: typeof LitElement;
|
|
8
9
|
/**
|
|
9
10
|
* The `atomic-recs-result` component is used internally by the `atomic-recs-list` component.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BreadcrumbManager, type FacetManager, type FacetManagerState, type QuerySummary, type QuerySummaryState, type SearchStatus, type Sort, type SortState, type TabManager, type TabManagerState } from '@coveo/headless';
|
|
1
|
+
import { type BreadcrumbManager, type BreadcrumbManagerState, type FacetManager, type FacetManagerState, type QuerySummary, type QuerySummaryState, type SearchStatus, type Sort, type SortState, type TabManager, type TabManagerState } from '@coveo/headless';
|
|
2
2
|
import { type CSSResultGroup, LitElement } from 'lit';
|
|
3
3
|
import type { InitializableComponent } from "../../../decorators/types";
|
|
4
4
|
import type { Bindings } from '../atomic-search-interface/atomic-search-interface';
|
|
@@ -6,7 +6,7 @@ import "../atomic-automatic-facet-generator/atomic-automatic-facet-generator";
|
|
|
6
6
|
/**
|
|
7
7
|
* The `atomic-refine-modal` component is automatically created as a child of the `atomic-search-interface` when the `atomic-refine-toggle` is initialized.
|
|
8
8
|
*
|
|
9
|
-
* When the modal is opened, the class `atomic-modal-opened` is added to the interface element and the body
|
|
9
|
+
* When the modal is opened, the class `atomic-modal-opened` is added to the interface element and the body.
|
|
10
10
|
*
|
|
11
11
|
* @part title - The title of the modal.
|
|
12
12
|
* @part close-button - The button in the header that closes the modal.
|
|
@@ -33,6 +33,7 @@ import "../atomic-automatic-facet-generator/atomic-automatic-facet-generator";
|
|
|
33
33
|
* @part header-wrapper - The wrapper around the header.
|
|
34
34
|
* @part header - The header of the modal, containing the title.
|
|
35
35
|
* @part container - The modal's outermost container.
|
|
36
|
+
* @part backdrop - The transparent backdrop hiding the content behind the modal.
|
|
36
37
|
*
|
|
37
38
|
* @cssprop --atomic-refine-modal-facet-margin - The margin between facets in the refine modal. Default is `20px`.
|
|
38
39
|
*/
|
|
@@ -58,7 +59,7 @@ export declare class AtomicRefineModal extends LitElement implements Initializab
|
|
|
58
59
|
sort: Sort;
|
|
59
60
|
sortState: SortState;
|
|
60
61
|
breadcrumbManager: BreadcrumbManager;
|
|
61
|
-
|
|
62
|
+
breadcrumbManagerState: BreadcrumbManagerState;
|
|
62
63
|
querySummary: QuerySummary;
|
|
63
64
|
querySummaryState: QuerySummaryState;
|
|
64
65
|
searchStatus: SearchStatus;
|
|
@@ -6,46 +6,14 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { Actions, InsightResultActionClickedEvent } from "./components/insight/atomic-insight-result-action/atomic-insight-result-action";
|
|
9
|
-
import { InsightResultAttachToCaseEvent } from "./components/insight/atomic-insight-result-attach-to-case-action/atomic-insight-result-attach-to-case-action";
|
|
10
9
|
import { DateFilterRange, DateRangeRequest, ResultTemplate, ResultTemplateCondition } from "@coveo/headless";
|
|
11
10
|
import { RangeFacetSortCriterion as InsightRangeFacetSortCriterion } from "@coveo/headless/insight";
|
|
12
|
-
import { ItemDisplayBasicLayout, ItemDisplayDensity, ItemDisplayImageSize } from "./components/common/layout/display-options";
|
|
13
|
-
import { ItemRenderingFunction } from "./components/common/item-list/stencil-item-list-common";
|
|
14
11
|
import { AnyBindings } from "./components/common/interface/bindings";
|
|
15
12
|
export { Actions, InsightResultActionClickedEvent } from "./components/insight/atomic-insight-result-action/atomic-insight-result-action";
|
|
16
|
-
export { InsightResultAttachToCaseEvent } from "./components/insight/atomic-insight-result-attach-to-case-action/atomic-insight-result-attach-to-case-action";
|
|
17
13
|
export { DateFilterRange, DateRangeRequest, ResultTemplate, ResultTemplateCondition } from "@coveo/headless";
|
|
18
14
|
export { RangeFacetSortCriterion as InsightRangeFacetSortCriterion } from "@coveo/headless/insight";
|
|
19
|
-
export { ItemDisplayBasicLayout, ItemDisplayDensity, ItemDisplayImageSize } from "./components/common/layout/display-options";
|
|
20
|
-
export { ItemRenderingFunction } from "./components/common/item-list/stencil-item-list-common";
|
|
21
15
|
export { AnyBindings } from "./components/common/interface/bindings";
|
|
22
16
|
export namespace Components {
|
|
23
|
-
interface AtomicInsightGeneratedAnswer {
|
|
24
|
-
"answerConfigurationId"?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Whether to allow the answer to be collapsed when the text is taller than 250px.
|
|
27
|
-
* @default false
|
|
28
|
-
*/
|
|
29
|
-
"collapsible"?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Option to disable citation anchoring.
|
|
32
|
-
* @default false
|
|
33
|
-
*/
|
|
34
|
-
"disableCitationAnchoring"?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* A list of fields to include with the citations used to generate the answer.
|
|
37
|
-
*/
|
|
38
|
-
"fieldsToIncludeInCitations"?: string;
|
|
39
|
-
/**
|
|
40
|
-
* The maximum height (in rem units) of the answer when collapsed.
|
|
41
|
-
*/
|
|
42
|
-
"maxCollapsedHeight": number;
|
|
43
|
-
/**
|
|
44
|
-
* Whether to render a toggle button that lets the user hide or show the answer.
|
|
45
|
-
* @default false
|
|
46
|
-
*/
|
|
47
|
-
"withToggle"?: boolean;
|
|
48
|
-
}
|
|
49
17
|
interface AtomicInsightResultAction {
|
|
50
18
|
/**
|
|
51
19
|
* The type of action to perform when the result action is clicked. This will be sent along the event fired when the button is clicked.
|
|
@@ -64,8 +32,6 @@ export namespace Components {
|
|
|
64
32
|
*/
|
|
65
33
|
"tooltipOnClick": string;
|
|
66
34
|
}
|
|
67
|
-
interface AtomicInsightResultAttachToCaseAction {
|
|
68
|
-
}
|
|
69
35
|
interface AtomicInsightResultChildrenTemplate {
|
|
70
36
|
/**
|
|
71
37
|
* A function that must return true on results for the result template to apply. Set programmatically before initialization, not via attribute. For example, the following targets a template and sets a condition to make it apply only to results whose `title` contains `singapore`: `document.querySelector('#target-template').conditions = [(result) => /singapore/i.test(result.title)];`
|
|
@@ -140,70 +106,6 @@ export namespace Components {
|
|
|
140
106
|
*/
|
|
141
107
|
"withDatePicker": boolean;
|
|
142
108
|
}
|
|
143
|
-
/**
|
|
144
|
-
* The `atomic-ipx-recs-list` component displays recommendations by applying one or more result templates.
|
|
145
|
-
*/
|
|
146
|
-
interface AtomicIpxRecsList {
|
|
147
|
-
/**
|
|
148
|
-
* The spacing of various elements in the result list, including the gap between results, the gap between parts of a result, and the font sizes of different parts in a result.
|
|
149
|
-
*/
|
|
150
|
-
"density": ItemDisplayDensity;
|
|
151
|
-
/**
|
|
152
|
-
* The layout to apply when displaying results themselves. This does not affect the display of the surrounding list itself. To modify the number of recommendations per column, modify the --atomic-recs-number-of-columns CSS variable.
|
|
153
|
-
*/
|
|
154
|
-
"display": ItemDisplayBasicLayout;
|
|
155
|
-
/**
|
|
156
|
-
* The [heading level](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements) to use for the heading label, from 1 to 6.
|
|
157
|
-
*/
|
|
158
|
-
"headingLevel": number;
|
|
159
|
-
/**
|
|
160
|
-
* The expected size of the image displayed in the results.
|
|
161
|
-
*/
|
|
162
|
-
"imageSize": ItemDisplayImageSize;
|
|
163
|
-
/**
|
|
164
|
-
* The non-localized label for the list of recommendations.
|
|
165
|
-
*/
|
|
166
|
-
"label"?: string;
|
|
167
|
-
/**
|
|
168
|
-
* Moves to the next page, when the carousel is activated.
|
|
169
|
-
*/
|
|
170
|
-
"nextPage": () => Promise<void>;
|
|
171
|
-
/**
|
|
172
|
-
* The total number of recommendations to display. This does not modify the number of recommendations per column. To do so, modify the --atomic-recs-number-of-columns CSS variable.
|
|
173
|
-
*/
|
|
174
|
-
"numberOfRecommendations": number;
|
|
175
|
-
/**
|
|
176
|
-
* The number of recommendations to display, per page. Setting a value greater than and lower than the numberOfRecommendations value activates the carousel. This does not affect the display of the list itself, only the number of recommendation pages.
|
|
177
|
-
*/
|
|
178
|
-
"numberOfRecommendationsPerPage"?: number;
|
|
179
|
-
/**
|
|
180
|
-
* Moves to the previous page, when the carousel is activated.
|
|
181
|
-
*/
|
|
182
|
-
"previousPage": () => Promise<void>;
|
|
183
|
-
/**
|
|
184
|
-
* The Recommendation identifier used by the Coveo platform to retrieve recommended documents. Make sure to set a different value for each atomic-ipx-recs-list in your page.
|
|
185
|
-
*/
|
|
186
|
-
"recommendation": string;
|
|
187
|
-
/**
|
|
188
|
-
* Sets a rendering function to bypass the standard HTML template mechanism for rendering results. You can use this function while working with web frameworks that don't use plain HTML syntax such as React, Angular, or Vue. Do not use this method if you integrate Atomic in a plain HTML deployment.
|
|
189
|
-
* @param resultRenderingFunction
|
|
190
|
-
*/
|
|
191
|
-
"setRenderFunction": (resultRenderingFunction: ItemRenderingFunction) => Promise<void>;
|
|
192
|
-
}
|
|
193
|
-
interface AtomicIpxRefineModal {
|
|
194
|
-
/**
|
|
195
|
-
* The number of expanded facets inside the refine modal. Remaining facets are automatically collapsed. Using the value `0` collapses all facets.
|
|
196
|
-
*/
|
|
197
|
-
"collapseFacetsAfter": number;
|
|
198
|
-
"isOpen": boolean;
|
|
199
|
-
"openButton"?: HTMLElement;
|
|
200
|
-
}
|
|
201
|
-
interface AtomicIpxRefineToggle {
|
|
202
|
-
/**
|
|
203
|
-
* The number of expanded facets inside the refine modal. Remaining facets are automatically collapsed. Using the value `0` collapses all facets.
|
|
204
|
-
*/
|
|
205
|
-
"collapseFacetsAfter": number;
|
|
206
|
-
}
|
|
207
109
|
/**
|
|
208
110
|
* @deprecated Use `atomic-facet-date-input` instead. This component is meant to be used with Stencil components only.
|
|
209
111
|
* Internal component made to be integrated in a TimeframeFacet.
|
|
@@ -222,21 +124,11 @@ export interface AtomicInsightResultActionCustomEvent<T> extends CustomEvent<T>
|
|
|
222
124
|
detail: T;
|
|
223
125
|
target: HTMLAtomicInsightResultActionElement;
|
|
224
126
|
}
|
|
225
|
-
export interface AtomicInsightResultAttachToCaseActionCustomEvent<T> extends CustomEvent<T> {
|
|
226
|
-
detail: T;
|
|
227
|
-
target: HTMLAtomicInsightResultAttachToCaseActionElement;
|
|
228
|
-
}
|
|
229
127
|
export interface AtomicStencilFacetDateInputCustomEvent<T> extends CustomEvent<T> {
|
|
230
128
|
detail: T;
|
|
231
129
|
target: HTMLAtomicStencilFacetDateInputElement;
|
|
232
130
|
}
|
|
233
131
|
declare global {
|
|
234
|
-
interface HTMLAtomicInsightGeneratedAnswerElement extends Components.AtomicInsightGeneratedAnswer, HTMLStencilElement {
|
|
235
|
-
}
|
|
236
|
-
var HTMLAtomicInsightGeneratedAnswerElement: {
|
|
237
|
-
prototype: HTMLAtomicInsightGeneratedAnswerElement;
|
|
238
|
-
new (): HTMLAtomicInsightGeneratedAnswerElement;
|
|
239
|
-
};
|
|
240
132
|
interface HTMLAtomicInsightResultActionElementEventMap {
|
|
241
133
|
"atomicInsightResultActionClicked": InsightResultActionClickedEvent;
|
|
242
134
|
}
|
|
@@ -254,24 +146,6 @@ declare global {
|
|
|
254
146
|
prototype: HTMLAtomicInsightResultActionElement;
|
|
255
147
|
new (): HTMLAtomicInsightResultActionElement;
|
|
256
148
|
};
|
|
257
|
-
interface HTMLAtomicInsightResultAttachToCaseActionElementEventMap {
|
|
258
|
-
"atomic/insight/attachToCase/attach": InsightResultAttachToCaseEvent;
|
|
259
|
-
"atomic/insight/attachToCase/detach": InsightResultAttachToCaseEvent;
|
|
260
|
-
}
|
|
261
|
-
interface HTMLAtomicInsightResultAttachToCaseActionElement extends Components.AtomicInsightResultAttachToCaseAction, HTMLStencilElement {
|
|
262
|
-
addEventListener<K extends keyof HTMLAtomicInsightResultAttachToCaseActionElementEventMap>(type: K, listener: (this: HTMLAtomicInsightResultAttachToCaseActionElement, ev: AtomicInsightResultAttachToCaseActionCustomEvent<HTMLAtomicInsightResultAttachToCaseActionElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
263
|
-
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
264
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
265
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
266
|
-
removeEventListener<K extends keyof HTMLAtomicInsightResultAttachToCaseActionElementEventMap>(type: K, listener: (this: HTMLAtomicInsightResultAttachToCaseActionElement, ev: AtomicInsightResultAttachToCaseActionCustomEvent<HTMLAtomicInsightResultAttachToCaseActionElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
267
|
-
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
268
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
269
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
270
|
-
}
|
|
271
|
-
var HTMLAtomicInsightResultAttachToCaseActionElement: {
|
|
272
|
-
prototype: HTMLAtomicInsightResultAttachToCaseActionElement;
|
|
273
|
-
new (): HTMLAtomicInsightResultAttachToCaseActionElement;
|
|
274
|
-
};
|
|
275
149
|
interface HTMLAtomicInsightResultChildrenTemplateElement extends Components.AtomicInsightResultChildrenTemplate, HTMLStencilElement {
|
|
276
150
|
}
|
|
277
151
|
var HTMLAtomicInsightResultChildrenTemplateElement: {
|
|
@@ -284,27 +158,6 @@ declare global {
|
|
|
284
158
|
prototype: HTMLAtomicInsightTimeframeFacetElement;
|
|
285
159
|
new (): HTMLAtomicInsightTimeframeFacetElement;
|
|
286
160
|
};
|
|
287
|
-
/**
|
|
288
|
-
* The `atomic-ipx-recs-list` component displays recommendations by applying one or more result templates.
|
|
289
|
-
*/
|
|
290
|
-
interface HTMLAtomicIpxRecsListElement extends Components.AtomicIpxRecsList, HTMLStencilElement {
|
|
291
|
-
}
|
|
292
|
-
var HTMLAtomicIpxRecsListElement: {
|
|
293
|
-
prototype: HTMLAtomicIpxRecsListElement;
|
|
294
|
-
new (): HTMLAtomicIpxRecsListElement;
|
|
295
|
-
};
|
|
296
|
-
interface HTMLAtomicIpxRefineModalElement extends Components.AtomicIpxRefineModal, HTMLStencilElement {
|
|
297
|
-
}
|
|
298
|
-
var HTMLAtomicIpxRefineModalElement: {
|
|
299
|
-
prototype: HTMLAtomicIpxRefineModalElement;
|
|
300
|
-
new (): HTMLAtomicIpxRefineModalElement;
|
|
301
|
-
};
|
|
302
|
-
interface HTMLAtomicIpxRefineToggleElement extends Components.AtomicIpxRefineToggle, HTMLStencilElement {
|
|
303
|
-
}
|
|
304
|
-
var HTMLAtomicIpxRefineToggleElement: {
|
|
305
|
-
prototype: HTMLAtomicIpxRefineToggleElement;
|
|
306
|
-
new (): HTMLAtomicIpxRefineToggleElement;
|
|
307
|
-
};
|
|
308
161
|
interface HTMLAtomicStencilFacetDateInputElementEventMap {
|
|
309
162
|
"atomic/dateInputApply": any;
|
|
310
163
|
}
|
|
@@ -327,43 +180,13 @@ declare global {
|
|
|
327
180
|
new (): HTMLAtomicStencilFacetDateInputElement;
|
|
328
181
|
};
|
|
329
182
|
interface HTMLElementTagNameMap {
|
|
330
|
-
"atomic-insight-generated-answer": HTMLAtomicInsightGeneratedAnswerElement;
|
|
331
183
|
"atomic-insight-result-action": HTMLAtomicInsightResultActionElement;
|
|
332
|
-
"atomic-insight-result-attach-to-case-action": HTMLAtomicInsightResultAttachToCaseActionElement;
|
|
333
184
|
"atomic-insight-result-children-template": HTMLAtomicInsightResultChildrenTemplateElement;
|
|
334
185
|
"atomic-insight-timeframe-facet": HTMLAtomicInsightTimeframeFacetElement;
|
|
335
|
-
"atomic-ipx-recs-list": HTMLAtomicIpxRecsListElement;
|
|
336
|
-
"atomic-ipx-refine-modal": HTMLAtomicIpxRefineModalElement;
|
|
337
|
-
"atomic-ipx-refine-toggle": HTMLAtomicIpxRefineToggleElement;
|
|
338
186
|
"atomic-stencil-facet-date-input": HTMLAtomicStencilFacetDateInputElement;
|
|
339
187
|
}
|
|
340
188
|
}
|
|
341
189
|
declare namespace LocalJSX {
|
|
342
|
-
interface AtomicInsightGeneratedAnswer {
|
|
343
|
-
/**
|
|
344
|
-
* Whether to allow the answer to be collapsed when the text is taller than 250px.
|
|
345
|
-
* @default false
|
|
346
|
-
*/
|
|
347
|
-
"collapsible"?: boolean;
|
|
348
|
-
/**
|
|
349
|
-
* Option to disable citation anchoring.
|
|
350
|
-
* @default false
|
|
351
|
-
*/
|
|
352
|
-
"disableCitationAnchoring"?: boolean;
|
|
353
|
-
/**
|
|
354
|
-
* A list of fields to include with the citations used to generate the answer.
|
|
355
|
-
*/
|
|
356
|
-
"fieldsToIncludeInCitations"?: string;
|
|
357
|
-
/**
|
|
358
|
-
* The maximum height (in rem units) of the answer when collapsed.
|
|
359
|
-
*/
|
|
360
|
-
"maxCollapsedHeight"?: number;
|
|
361
|
-
/**
|
|
362
|
-
* Whether to render a toggle button that lets the user hide or show the answer.
|
|
363
|
-
* @default false
|
|
364
|
-
*/
|
|
365
|
-
"withToggle"?: boolean;
|
|
366
|
-
}
|
|
367
190
|
interface AtomicInsightResultAction {
|
|
368
191
|
/**
|
|
369
192
|
* The type of action to perform when the result action is clicked. This will be sent along the event fired when the button is clicked.
|
|
@@ -387,14 +210,6 @@ declare namespace LocalJSX {
|
|
|
387
210
|
*/
|
|
388
211
|
"tooltipOnClick"?: string;
|
|
389
212
|
}
|
|
390
|
-
interface AtomicInsightResultAttachToCaseAction {
|
|
391
|
-
/**
|
|
392
|
-
* @migration Stencil's
|
|
393
|
-
* @Event () decorator defaults to: bubbles=true, composed=true, cancelable=true. Native CustomEvent defaults to: bubbles=false, composed=false, cancelable=false. When migrating to Lit, explicitly set all three options to preserve behavior: `new CustomEvent('atomic/insight/attachToCase/attach', { bubbles: true, composed: true, cancelable: true, detail: ... })` `new CustomEvent('atomic/insight/attachToCase/detach', { bubbles: true, composed: true, cancelable: true, detail: ... })`
|
|
394
|
-
*/
|
|
395
|
-
"onAtomic/insight/attachToCase/attach"?: (event: AtomicInsightResultAttachToCaseActionCustomEvent<InsightResultAttachToCaseEvent>) => void;
|
|
396
|
-
"onAtomic/insight/attachToCase/detach"?: (event: AtomicInsightResultAttachToCaseActionCustomEvent<InsightResultAttachToCaseEvent>) => void;
|
|
397
|
-
}
|
|
398
213
|
interface AtomicInsightResultChildrenTemplate {
|
|
399
214
|
/**
|
|
400
215
|
* A function that must return true on results for the result template to apply. Set programmatically before initialization, not via attribute. For example, the following targets a template and sets a condition to make it apply only to results whose `title` contains `singapore`: `document.querySelector('#target-template').conditions = [(result) => /singapore/i.test(result.title)];`
|
|
@@ -465,57 +280,6 @@ declare namespace LocalJSX {
|
|
|
465
280
|
*/
|
|
466
281
|
"withDatePicker"?: boolean;
|
|
467
282
|
}
|
|
468
|
-
/**
|
|
469
|
-
* The `atomic-ipx-recs-list` component displays recommendations by applying one or more result templates.
|
|
470
|
-
*/
|
|
471
|
-
interface AtomicIpxRecsList {
|
|
472
|
-
/**
|
|
473
|
-
* The spacing of various elements in the result list, including the gap between results, the gap between parts of a result, and the font sizes of different parts in a result.
|
|
474
|
-
*/
|
|
475
|
-
"density"?: ItemDisplayDensity;
|
|
476
|
-
/**
|
|
477
|
-
* The layout to apply when displaying results themselves. This does not affect the display of the surrounding list itself. To modify the number of recommendations per column, modify the --atomic-recs-number-of-columns CSS variable.
|
|
478
|
-
*/
|
|
479
|
-
"display"?: ItemDisplayBasicLayout;
|
|
480
|
-
/**
|
|
481
|
-
* The [heading level](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements) to use for the heading label, from 1 to 6.
|
|
482
|
-
*/
|
|
483
|
-
"headingLevel"?: number;
|
|
484
|
-
/**
|
|
485
|
-
* The expected size of the image displayed in the results.
|
|
486
|
-
*/
|
|
487
|
-
"imageSize"?: ItemDisplayImageSize;
|
|
488
|
-
/**
|
|
489
|
-
* The non-localized label for the list of recommendations.
|
|
490
|
-
*/
|
|
491
|
-
"label"?: string;
|
|
492
|
-
/**
|
|
493
|
-
* The total number of recommendations to display. This does not modify the number of recommendations per column. To do so, modify the --atomic-recs-number-of-columns CSS variable.
|
|
494
|
-
*/
|
|
495
|
-
"numberOfRecommendations"?: number;
|
|
496
|
-
/**
|
|
497
|
-
* The number of recommendations to display, per page. Setting a value greater than and lower than the numberOfRecommendations value activates the carousel. This does not affect the display of the list itself, only the number of recommendation pages.
|
|
498
|
-
*/
|
|
499
|
-
"numberOfRecommendationsPerPage"?: number;
|
|
500
|
-
/**
|
|
501
|
-
* The Recommendation identifier used by the Coveo platform to retrieve recommended documents. Make sure to set a different value for each atomic-ipx-recs-list in your page.
|
|
502
|
-
*/
|
|
503
|
-
"recommendation"?: string;
|
|
504
|
-
}
|
|
505
|
-
interface AtomicIpxRefineModal {
|
|
506
|
-
/**
|
|
507
|
-
* The number of expanded facets inside the refine modal. Remaining facets are automatically collapsed. Using the value `0` collapses all facets.
|
|
508
|
-
*/
|
|
509
|
-
"collapseFacetsAfter"?: number;
|
|
510
|
-
"isOpen"?: boolean;
|
|
511
|
-
"openButton"?: HTMLElement;
|
|
512
|
-
}
|
|
513
|
-
interface AtomicIpxRefineToggle {
|
|
514
|
-
/**
|
|
515
|
-
* The number of expanded facets inside the refine modal. Remaining facets are automatically collapsed. Using the value `0` collapses all facets.
|
|
516
|
-
*/
|
|
517
|
-
"collapseFacetsAfter"?: number;
|
|
518
|
-
}
|
|
519
283
|
/**
|
|
520
284
|
* @deprecated Use `atomic-facet-date-input` instead. This component is meant to be used with Stencil components only.
|
|
521
285
|
* Internal component made to be integrated in a TimeframeFacet.
|
|
@@ -535,14 +299,9 @@ declare namespace LocalJSX {
|
|
|
535
299
|
"rangeSetter": (range: DateRangeRequest) => void;
|
|
536
300
|
}
|
|
537
301
|
interface IntrinsicElements {
|
|
538
|
-
"atomic-insight-generated-answer": AtomicInsightGeneratedAnswer;
|
|
539
302
|
"atomic-insight-result-action": AtomicInsightResultAction;
|
|
540
|
-
"atomic-insight-result-attach-to-case-action": AtomicInsightResultAttachToCaseAction;
|
|
541
303
|
"atomic-insight-result-children-template": AtomicInsightResultChildrenTemplate;
|
|
542
304
|
"atomic-insight-timeframe-facet": AtomicInsightTimeframeFacet;
|
|
543
|
-
"atomic-ipx-recs-list": AtomicIpxRecsList;
|
|
544
|
-
"atomic-ipx-refine-modal": AtomicIpxRefineModal;
|
|
545
|
-
"atomic-ipx-refine-toggle": AtomicIpxRefineToggle;
|
|
546
305
|
"atomic-stencil-facet-date-input": AtomicStencilFacetDateInput;
|
|
547
306
|
}
|
|
548
307
|
}
|
|
@@ -550,17 +309,9 @@ export { LocalJSX as JSX };
|
|
|
550
309
|
declare module "@stencil/core" {
|
|
551
310
|
export namespace JSX {
|
|
552
311
|
interface IntrinsicElements {
|
|
553
|
-
"atomic-insight-generated-answer": LocalJSX.AtomicInsightGeneratedAnswer & JSXBase.HTMLAttributes<HTMLAtomicInsightGeneratedAnswerElement>;
|
|
554
312
|
"atomic-insight-result-action": LocalJSX.AtomicInsightResultAction & JSXBase.HTMLAttributes<HTMLAtomicInsightResultActionElement>;
|
|
555
|
-
"atomic-insight-result-attach-to-case-action": LocalJSX.AtomicInsightResultAttachToCaseAction & JSXBase.HTMLAttributes<HTMLAtomicInsightResultAttachToCaseActionElement>;
|
|
556
313
|
"atomic-insight-result-children-template": LocalJSX.AtomicInsightResultChildrenTemplate & JSXBase.HTMLAttributes<HTMLAtomicInsightResultChildrenTemplateElement>;
|
|
557
314
|
"atomic-insight-timeframe-facet": LocalJSX.AtomicInsightTimeframeFacet & JSXBase.HTMLAttributes<HTMLAtomicInsightTimeframeFacetElement>;
|
|
558
|
-
/**
|
|
559
|
-
* The `atomic-ipx-recs-list` component displays recommendations by applying one or more result templates.
|
|
560
|
-
*/
|
|
561
|
-
"atomic-ipx-recs-list": LocalJSX.AtomicIpxRecsList & JSXBase.HTMLAttributes<HTMLAtomicIpxRecsListElement>;
|
|
562
|
-
"atomic-ipx-refine-modal": LocalJSX.AtomicIpxRefineModal & JSXBase.HTMLAttributes<HTMLAtomicIpxRefineModalElement>;
|
|
563
|
-
"atomic-ipx-refine-toggle": LocalJSX.AtomicIpxRefineToggle & JSXBase.HTMLAttributes<HTMLAtomicIpxRefineToggleElement>;
|
|
564
315
|
/**
|
|
565
316
|
* @deprecated Use `atomic-facet-date-input` instead. This component is meant to be used with Stencil components only.
|
|
566
317
|
* Internal component made to be integrated in a TimeframeFacet.
|
package/docs/atomic-docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-02-
|
|
2
|
+
"timestamp": "2026-02-25T03:07:17",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.20.0",
|
|
@@ -17,11 +17,6 @@
|
|
|
17
17
|
"docstring": "",
|
|
18
18
|
"path": "src/components/insight/atomic-insight-result-action/atomic-insight-result-action.tsx"
|
|
19
19
|
},
|
|
20
|
-
"src/components/insight/atomic-insight-result-attach-to-case-action/atomic-insight-result-attach-to-case-action.tsx::InsightResultAttachToCaseEvent": {
|
|
21
|
-
"declaration": "export interface InsightResultAttachToCaseEvent {\n callback: () => void;\n result: Result;\n}",
|
|
22
|
-
"docstring": "",
|
|
23
|
-
"path": "src/components/insight/atomic-insight-result-attach-to-case-action/atomic-insight-result-attach-to-case-action.tsx"
|
|
24
|
-
},
|
|
25
20
|
"src/components/common/interface/bindings.ts::AnyBindings": {
|
|
26
21
|
"declaration": "export interface CommonBindings<\n Engine extends AnyEngineType,\n Store extends AnyStore,\n InterfaceElement extends HTMLElement,\n> {\n /**\n * A headless engine instance.\n */\n engine: Engine;\n /**\n * i18n instance, for localization.\n */\n i18n: i18n;\n /**\n * Global state for Atomic\n */\n store: Store;\n /**\n * A reference to the atomic interface element.\n */\n interfaceElement: InterfaceElement;\n}",
|
|
27
22
|
"docstring": "Bindings passed from an interface to its children components.",
|
|
@@ -51,26 +46,6 @@
|
|
|
51
46
|
"declaration": "any",
|
|
52
47
|
"docstring": "",
|
|
53
48
|
"path": "../headless/dist/definitions/index.d.ts"
|
|
54
|
-
},
|
|
55
|
-
"src/components/common/layout/display-options.ts::ItemDisplayBasicLayout": {
|
|
56
|
-
"declaration": "export type ItemDisplayBasicLayout = 'list' | 'grid';",
|
|
57
|
-
"docstring": "",
|
|
58
|
-
"path": "src/components/common/layout/display-options.ts"
|
|
59
|
-
},
|
|
60
|
-
"src/components/common/layout/display-options.ts::ItemDisplayDensity": {
|
|
61
|
-
"declaration": "export type ItemDisplayDensity = 'comfortable' | 'normal' | 'compact';",
|
|
62
|
-
"docstring": "",
|
|
63
|
-
"path": "src/components/common/layout/display-options.ts"
|
|
64
|
-
},
|
|
65
|
-
"src/components/common/layout/display-options.ts::ItemDisplayImageSize": {
|
|
66
|
-
"declaration": "export type ItemDisplayImageSize = 'large' | 'small' | 'icon' | 'none';",
|
|
67
|
-
"docstring": "",
|
|
68
|
-
"path": "src/components/common/layout/display-options.ts"
|
|
69
|
-
},
|
|
70
|
-
"src/components/common/item-list/stencil-item-list-common.tsx::ItemRenderingFunction": {
|
|
71
|
-
"declaration": "export type ItemRenderingFunction<SpecificResult extends AnyItem = AnyItem> =\n | ((\n result: SpecificResult,\n root: HTMLElement,\n linkContainer?: HTMLElement\n ) => string)\n | undefined;",
|
|
72
|
-
"docstring": "",
|
|
73
|
-
"path": "src/components/common/item-list/stencil-item-list-common.tsx"
|
|
74
49
|
}
|
|
75
50
|
}
|
|
76
51
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coveo/atomic",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.51.0",
|
|
5
5
|
"description": "A web-component library for building modern UIs interfacing with the Coveo platform",
|
|
6
6
|
"homepage": "https://docs.coveo.com/en/atomic/latest/",
|
|
7
7
|
"repository": {
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
"lit": "3.3.1",
|
|
70
70
|
"marked": "12.0.2",
|
|
71
71
|
"stencil-inline-svg": "1.1.0",
|
|
72
|
-
"@coveo/headless": "3.44.0",
|
|
73
72
|
"@coveo/bueno": "1.1.7",
|
|
74
|
-
"@coveo/
|
|
73
|
+
"@coveo/headless": "3.45.1",
|
|
74
|
+
"@coveo/atomic-legacy": "0.0.1"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@custom-elements-manifest/analyzer": "0.10.4",
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"peerDependencies": {
|
|
140
140
|
"typescript": ">=5.0.0",
|
|
141
141
|
"@coveo/bueno": "1.1.7",
|
|
142
|
-
"@coveo/headless": "3.
|
|
142
|
+
"@coveo/headless": "3.45.1"
|
|
143
143
|
},
|
|
144
144
|
"peerDependenciesMeta": {
|
|
145
145
|
"typescript": {
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
const ArrowBottomIcon = `<svg viewBox="0 0 12.6 7.2" xmlns="http://www.w3.org/2000/svg"><path d="m11.421 7.04c-.3 0-.5-.1-.7-.3l-4.6-4.6-4.6 4.6c-.4.4-1 .4-1.4 0s-.4-1 0-1.4l5.2-5.2c.4-.4 1.2-.4 1.6 0l5.2 5.2c.4.4.4 1 0 1.4-.2.2-.4.3-.7.3" transform="matrix(-1 0 0 -1 12.366 7.086)"/></svg>`;
|
|
2
|
-
|
|
3
|
-
const ArrowTopIcon = `<svg viewBox="0 0 12.6 7.2" xmlns="http://www.w3.org/2000/svg"><path d="m11.3 7.04c-.3 0-.5-.1-.7-.3l-4.6-4.6-4.6 4.6c-.4.4-1 .4-1.4 0s-.4-1 0-1.4l5.2-5.2c.4-.4 1.2-.4 1.6 0l5.2 5.2c.4.4.4 1 0 1.4-.2.2-.4.3-.7.3"/></svg>`;
|
|
4
|
-
|
|
5
|
-
export { ArrowBottomIcon as A, ArrowTopIcon as a };
|
|
6
|
-
|
|
7
|
-
//# sourceMappingURL=arrow-top-rounded.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"arrow-top-rounded.js","mappings":";;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../../types/components";
|
|
2
|
-
|
|
3
|
-
interface AtomicInsightGeneratedAnswer extends Components.AtomicInsightGeneratedAnswer, HTMLElement {}
|
|
4
|
-
export const AtomicInsightGeneratedAnswer: {
|
|
5
|
-
prototype: AtomicInsightGeneratedAnswer;
|
|
6
|
-
new (): AtomicInsightGeneratedAnswer;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|