@coveo/atomic 3.33.0-pre.9ec0a4e261 → 3.33.0-pre.aaa8773090
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/dist/atomic/_atomic.esm.js +1 -1
- package/dist/atomic/components/analytics-config.js +1 -1
- package/dist/atomic/components/atomic-sort-expression.js +1 -1
- package/dist/atomic/components/atomic-sort-expression.js.map +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-description/atomic-product-description.js +0 -1
- package/dist/atomic/components/global/environment.js +1 -1
- package/dist/atomic/{p-308c3a88.entry.js → p-09924944.entry.js} +2 -2
- package/dist/atomic/p-09924944.entry.js.map +1 -0
- package/dist/atomic/{p-e6f12121.js → p-92aef2a1.js} +2 -2
- package/dist/atomic/{p-00b6a70b.entry.js → p-ea61e886.entry.js} +2 -2
- package/dist/atomic/{p-60743c20.entry.js → p-f78ef7d9.entry.js} +2 -2
- package/dist/atomic/{p-cba7760a.entry.js → p-fd4689be.entry.js} +2 -2
- package/dist/cjs/{analytics-config-787fc438.js → analytics-config-329f1cfd.js} +2 -2
- package/dist/cjs/{analytics-config-787fc438.js.map → analytics-config-329f1cfd.js.map} +1 -1
- package/dist/cjs/atomic-insight-interface.cjs.entry.js +1 -1
- package/dist/cjs/atomic-recs-interface.cjs.entry.js +1 -1
- package/dist/cjs/atomic-search-interface.cjs.entry.js +1 -1
- package/dist/cjs/atomic-sort-expression.cjs.entry.js +1 -1
- package/dist/cjs/atomic-sort-expression.cjs.entry.js.map +1 -1
- package/dist/cjs/version.cjs.js +2 -2
- package/dist/esm/{analytics-config-11400386.js → analytics-config-657d561c.js} +2 -2
- package/dist/esm/{analytics-config-11400386.js.map → analytics-config-657d561c.js.map} +1 -1
- package/dist/esm/atomic-insight-interface.entry.js +1 -1
- package/dist/esm/atomic-recs-interface.entry.js +1 -1
- package/dist/esm/atomic-search-interface.entry.js +1 -1
- package/dist/esm/atomic-sort-expression.entry.js +1 -1
- package/dist/esm/atomic-sort-expression.entry.js.map +1 -1
- package/dist/esm/version.js +2 -2
- package/dist/types/components/commerce/atomic-product-description/atomic-product-description.d.ts +0 -1
- package/dist/types/components/search/atomic-sort-expression/atomic-sort-expression.d.ts +13 -2
- package/dist/types/components.d.ts +2 -2
- package/docs/atomic-docs.json +2 -2
- package/package.json +3 -3
- package/dist/atomic/p-308c3a88.entry.js.map +0 -1
- /package/dist/atomic/{p-e6f12121.js.map → p-92aef2a1.js.map} +0 -0
- /package/dist/atomic/{p-00b6a70b.entry.js.map → p-ea61e886.entry.js.map} +0 -0
- /package/dist/atomic/{p-60743c20.entry.js.map → p-f78ef7d9.entry.js.map} +0 -0
- /package/dist/atomic/{p-cba7760a.entry.js.map → p-fd4689be.entry.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, s as setNonce, h, H as Host, g as getElement } from './index-3f35faca.js';
|
|
2
2
|
import { m as markParentAsReady } from './init-queue-fbe942c3.js';
|
|
3
3
|
import { buildResultsPerPage, loadFieldActions, buildInsightEngine } from '@coveo/headless/insight';
|
|
4
|
-
import { g as getNextAnalyticsConfig, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance } from './analytics-config-
|
|
4
|
+
import { g as getNextAnalyticsConfig, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance } from './analytics-config-657d561c.js';
|
|
5
5
|
import { A as ArrayProp } from './props-utils-76e19fa7.js';
|
|
6
6
|
import { D as DEFAULT_MOBILE_BREAKPOINT } from './replace-breakpoint-213367f8.js';
|
|
7
7
|
import { u as unsetLoadingFlag, s as setLoadingFlag, r as registerFacet, g as getFacetElements, w as waitUntilAppLoaded, a as createBaseStore } from './store-e14e2958.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, s as setNonce, h, g as getElement } from './index-3f35faca.js';
|
|
2
2
|
import { m as markParentAsReady } from './init-queue-fbe942c3.js';
|
|
3
3
|
import { loadRecommendationActions, loadSearchConfigurationActions, EcommerceDefaultFieldsToInclude, loadFieldActions, buildRecommendationEngine } from '@coveo/headless/recommendation';
|
|
4
|
-
import { g as getNextAnalyticsConfig, c as augmentAnalyticsConfigWithDocument, d as augmentAnalyticsConfigWithAtomicVersion, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance, m as mismatchedInterfaceAndEnginePropError } from './analytics-config-
|
|
4
|
+
import { g as getNextAnalyticsConfig, c as augmentAnalyticsConfigWithDocument, d as augmentAnalyticsConfigWithAtomicVersion, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance, m as mismatchedInterfaceAndEnginePropError } from './analytics-config-657d561c.js';
|
|
5
5
|
import { A as ArrayProp } from './props-utils-76e19fa7.js';
|
|
6
6
|
import { u as unsetLoadingFlag, s as setLoadingFlag, a as createBaseStore } from './store-e14e2958.js';
|
|
7
7
|
import './dayjs.min-d04628c6.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, s as setNonce, h, g as getElement } from './index-3f35faca.js';
|
|
2
2
|
import { m as markParentAsReady } from './init-queue-fbe942c3.js';
|
|
3
3
|
import { loadSearchConfigurationActions, loadQueryActions, EcommerceDefaultFieldsToInclude, loadFieldActions, buildSearchEngine, buildUrlManager, buildSearchStatus } from '@coveo/headless';
|
|
4
|
-
import { g as getNextAnalyticsConfig, d as augmentAnalyticsConfigWithAtomicVersion, c as augmentAnalyticsConfigWithDocument, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance, m as mismatchedInterfaceAndEnginePropError } from './analytics-config-
|
|
4
|
+
import { g as getNextAnalyticsConfig, d as augmentAnalyticsConfigWithAtomicVersion, c as augmentAnalyticsConfigWithDocument, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance, m as mismatchedInterfaceAndEnginePropError } from './analytics-config-657d561c.js';
|
|
5
5
|
import { a as StorageItems, S as SafeStorage } from './local-storage-utils-410269e6.js';
|
|
6
6
|
import { A as ArrayProp } from './props-utils-76e19fa7.js';
|
|
7
7
|
import { m as makeDesktopQuery, n as noResultsSelector, e as errorSelector, f as firstSearchExecutedSelector } from './search-layout-fdd7a917.js';
|
|
@@ -50,7 +50,7 @@ const AtomicSortExpression = class {
|
|
|
50
50
|
const dropdownComponent = 'atomic-sort-dropdown';
|
|
51
51
|
if (!this.host.closest(dropdownComponent)) {
|
|
52
52
|
const error = new Error(`The "${this.host.nodeName.toLowerCase()}" component has to be used inside an ${dropdownComponent} element.`);
|
|
53
|
-
return (h("atomic-component-error", { key: '
|
|
53
|
+
return (h("atomic-component-error", { key: '4492cc004facf655eaad9558db0c7a161535a8b6', element: this.host, error: error }));
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
get host() { return getElement(this); }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"atomic-sort-expression.entry.js","mappings":";;;;;;;;;;;;;;;;;MAUa,oBAAoB;;;;;;;;;;;;
|
|
1
|
+
{"file":"atomic-sort-expression.entry.js","mappings":";;;;;;;;;;;;;;;;;MAUa,oBAAoB;;;;;;;;;;;;QA2CxB,iBAAY,GAAsB,IAAI,CAAC;;;;;;;;;;QAavC,iBAAY,GAAsB,IAAI,CAAC;;;4BAbL,IAAI;4BAaJ,IAAI;;IAEtC,MAAM;QACX,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE;YAChE,OAAO,CAAC,IAAI,CACV,qHAAqH,CACtH,CAAC;SACH;QAED,MAAM,iBAAiB,GAAG,sBAAsB,CAAC;QAEjD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE;YACzC,MAAM,KAAK,GAAG,IAAI,KAAK,CACrB,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,wCAAwC,iBAAiB,WAAW,CAC7G,CAAC;YACF,QACE,+EACE,OAAO,EAAE,IAAI,CAAC,IAAI,EAClB,KAAK,EAAE,KAAK,GACY,EAC1B;SACH;KACF;;;AAnCM;IAFN,SAAS,EAAE;0DAEkC;AAavC;IAFN,SAAS,EAAE;0DAEkC;;;;","names":[],"sources":["src/components/search/atomic-sort-expression/atomic-sort-expression.tsx"],"sourcesContent":["import {Component, Prop, Element, h} from '@stencil/core';\nimport {ArrayProp} from '../../../utils/props-utils';\n\n/**\n * The `atomic-sort-expression` component defines a sort expression. This component must be inside an `atomic-sort-dropdown` component.\n */\n@Component({\n tag: 'atomic-sort-expression',\n shadow: false,\n})\nexport class AtomicSortExpression {\n @Element() public host!: HTMLElement;\n\n /**\n * The non-localized label to display for this expression.\n */\n @Prop({reflect: true}) public label!: string;\n\n /**\n * One or more sort criteria that the end user can select or toggle between.\n *\n * The available sort criteria are:\n *\n * * `relevancy`\n * * `date ascending`/`date descending`\n * * `qre`\n * * `<FIELD> ascending`/`<FIELD> descending`, where you replace `<FIELD>` with the name of a sortable field in your index (`criteria=\"size ascending\"`).\n *\n * You can specify multiple sort criteria to be used in the same request by separating them with a comma (`criteria=\"size ascending, date ascending\"`).\n * \n * You can specify a list of comma-separated sort criteria which will be applied sequentially. For example, if there's a tie on the 1st criterion, the API uses the 2nd criterion to break the tie. However, this only works when combining:\n * * a relevancy criterion followed by one or more field or date criteria.\n * * a qre criterion followed by one or more field or date criteria.\n * * two or more field criteria (`<FIELD>` descending, `<FIELD>` descending).\n * * a single date criterion and one or more field criteria in any order (`<FIELD>` descending, date ascending).\n * \n * Examples:\n * * `relevancy`, `<FIELD> descending`\n * * `qre`, `<FIELD> ascending`\n * * `date descending`, `<FIELD> descending`, `<FIELD> ascending`\n */\n @Prop({reflect: true}) public expression!: string;\n /**\n * The tabs on which the sort expression can be displayed. This property should not be used at the same time as `tabs-excluded`.\n *\n * Set this property as a stringified JSON array, e.g.,\n * ```html\n * <atomic-sort-expression tabs-included='[\"tabIDA\", \"tabIDB\"]'></atomic-sort-expression snippet>\n * ```\n * If you don't set this property, the sort expression can be displayed on any tab. Otherwise, the sort expression can only be displayed on the specified tabs.\n */\n @ArrayProp()\n @Prop({reflect: true, mutable: true})\n public tabsIncluded: string[] | string = '[]';\n\n /**\n * The tabs on which the sort expression must not be displayed. This property should not be used at the same time as `tabs-included`.\n *\n * Set this property as a stringified JSON array, e.g.,\n * ```html\n * <atomic-sort-expression tabs-excluded='[\"tabIDA\", \"tabIDB\"]'></atomic-sort-expression>\n * ```\n * If you don't set this property, the sort expression can be displayed on any tab. Otherwise, the sort expression won't be displayed on any of the specified tabs.\n */\n @ArrayProp()\n @Prop({reflect: true, mutable: true})\n public tabsExcluded: string[] | string = '[]';\n\n public render() {\n if (this.tabsIncluded.length > 0 && this.tabsExcluded.length > 0) {\n console.warn(\n 'Values for both \"tabs-included\" and \"tabs-excluded\" have been provided. This is could lead to unexpected behaviors.'\n );\n }\n\n const dropdownComponent = 'atomic-sort-dropdown';\n\n if (!this.host.closest(dropdownComponent)) {\n const error = new Error(\n `The \"${this.host.nodeName.toLowerCase()}\" component has to be used inside an ${dropdownComponent} element.`\n );\n return (\n <atomic-component-error\n element={this.host}\n error={error}\n ></atomic-component-error>\n );\n }\n }\n}\n"],"version":3}
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const headlessVersion = '3.28.4-pre.
|
|
2
|
-
export const atomicVersion = '3.33.0-pre.
|
|
1
|
+
export const headlessVersion = '3.28.4-pre.aaa8773090';
|
|
2
|
+
export const atomicVersion = '3.33.0-pre.aaa8773090';
|
package/dist/types/components/commerce/atomic-product-description/atomic-product-description.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ export declare class AtomicProductDescription extends LitElement implements Init
|
|
|
16
16
|
private descriptionRef;
|
|
17
17
|
/**
|
|
18
18
|
* The number of lines after which the product description should be truncated. A value of "none" will disable truncation.
|
|
19
|
-
* @default '2'
|
|
20
19
|
*/
|
|
21
20
|
truncateAfter: TruncateAfter;
|
|
22
21
|
/**
|
|
@@ -15,9 +15,20 @@ export declare class AtomicSortExpression {
|
|
|
15
15
|
* * `relevancy`
|
|
16
16
|
* * `date ascending`/`date descending`
|
|
17
17
|
* * `qre`
|
|
18
|
-
* * `<FIELD> ascending`/`<FIELD> descending`, where you replace `<FIELD>` with the name of a sortable field in your index (
|
|
18
|
+
* * `<FIELD> ascending`/`<FIELD> descending`, where you replace `<FIELD>` with the name of a sortable field in your index (`criteria="size ascending"`).
|
|
19
19
|
*
|
|
20
|
-
* You can specify multiple sort criteria to be used in the same request by separating them with a comma (
|
|
20
|
+
* You can specify multiple sort criteria to be used in the same request by separating them with a comma (`criteria="size ascending, date ascending"`).
|
|
21
|
+
*
|
|
22
|
+
* You can specify a list of comma-separated sort criteria which will be applied sequentially. For example, if there's a tie on the 1st criterion, the API uses the 2nd criterion to break the tie. However, this only works when combining:
|
|
23
|
+
* * a relevancy criterion followed by one or more field or date criteria.
|
|
24
|
+
* * a qre criterion followed by one or more field or date criteria.
|
|
25
|
+
* * two or more field criteria (`<FIELD>` descending, `<FIELD>` descending).
|
|
26
|
+
* * a single date criterion and one or more field criteria in any order (`<FIELD>` descending, date ascending).
|
|
27
|
+
*
|
|
28
|
+
* Examples:
|
|
29
|
+
* * `relevancy`, `<FIELD> descending`
|
|
30
|
+
* * `qre`, `<FIELD> ascending`
|
|
31
|
+
* * `date descending`, `<FIELD> descending`, `<FIELD> ascending`
|
|
21
32
|
*/
|
|
22
33
|
expression: string;
|
|
23
34
|
/**
|
|
@@ -2717,7 +2717,7 @@ export namespace Components {
|
|
|
2717
2717
|
*/
|
|
2718
2718
|
interface AtomicSortExpression {
|
|
2719
2719
|
/**
|
|
2720
|
-
* One or more sort criteria that the end user can select or toggle between. The available sort criteria are: * `relevancy` * `date ascending`/`date descending` * `qre` * `<FIELD> ascending`/`<FIELD> descending`, where you replace `<FIELD>` with the name of a sortable field in your index (
|
|
2720
|
+
* One or more sort criteria that the end user can select or toggle between. The available sort criteria are: * `relevancy` * `date ascending`/`date descending` * `qre` * `<FIELD> ascending`/`<FIELD> descending`, where you replace `<FIELD>` with the name of a sortable field in your index (`criteria="size ascending"`). You can specify multiple sort criteria to be used in the same request by separating them with a comma (`criteria="size ascending, date ascending"`). You can specify a list of comma-separated sort criteria which will be applied sequentially. For example, if there's a tie on the 1st criterion, the API uses the 2nd criterion to break the tie. However, this only works when combining: * a relevancy criterion followed by one or more field or date criteria. * a qre criterion followed by one or more field or date criteria. * two or more field criteria (`<FIELD>` descending, `<FIELD>` descending). * a single date criterion and one or more field criteria in any order (`<FIELD>` descending, date ascending). Examples: * `relevancy`, `<FIELD> descending` * `qre`, `<FIELD> ascending` * `date descending`, `<FIELD> descending`, `<FIELD> ascending`
|
|
2721
2721
|
*/
|
|
2722
2722
|
"expression": string;
|
|
2723
2723
|
/**
|
|
@@ -7235,7 +7235,7 @@ declare namespace LocalJSX {
|
|
|
7235
7235
|
*/
|
|
7236
7236
|
interface AtomicSortExpression {
|
|
7237
7237
|
/**
|
|
7238
|
-
* One or more sort criteria that the end user can select or toggle between. The available sort criteria are: * `relevancy` * `date ascending`/`date descending` * `qre` * `<FIELD> ascending`/`<FIELD> descending`, where you replace `<FIELD>` with the name of a sortable field in your index (
|
|
7238
|
+
* One or more sort criteria that the end user can select or toggle between. The available sort criteria are: * `relevancy` * `date ascending`/`date descending` * `qre` * `<FIELD> ascending`/`<FIELD> descending`, where you replace `<FIELD>` with the name of a sortable field in your index (`criteria="size ascending"`). You can specify multiple sort criteria to be used in the same request by separating them with a comma (`criteria="size ascending, date ascending"`). You can specify a list of comma-separated sort criteria which will be applied sequentially. For example, if there's a tie on the 1st criterion, the API uses the 2nd criterion to break the tie. However, this only works when combining: * a relevancy criterion followed by one or more field or date criteria. * a qre criterion followed by one or more field or date criteria. * two or more field criteria (`<FIELD>` descending, `<FIELD>` descending). * a single date criterion and one or more field criteria in any order (`<FIELD>` descending, date ascending). Examples: * `relevancy`, `<FIELD> descending` * `qre`, `<FIELD> ascending` * `date descending`, `<FIELD> descending`, `<FIELD> ascending`
|
|
7239
7239
|
*/
|
|
7240
7240
|
"expression": string;
|
|
7241
7241
|
/**
|
package/docs/atomic-docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-08-
|
|
2
|
+
"timestamp": "2025-08-19T15:27:36",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.20.0",
|
|
@@ -14181,7 +14181,7 @@
|
|
|
14181
14181
|
"mutable": false,
|
|
14182
14182
|
"attr": "expression",
|
|
14183
14183
|
"reflectToAttr": true,
|
|
14184
|
-
"docs": "One or more sort criteria that the end user can select or toggle between.\n\nThe available sort criteria are:\n\n* `relevancy`\n* `date ascending`/`date descending`\n* `qre`\n* `<FIELD> ascending`/`<FIELD> descending`, where you replace `<FIELD>` with the name of a sortable field in your index (
|
|
14184
|
+
"docs": "One or more sort criteria that the end user can select or toggle between.\n\nThe available sort criteria are:\n\n* `relevancy`\n* `date ascending`/`date descending`\n* `qre`\n* `<FIELD> ascending`/`<FIELD> descending`, where you replace `<FIELD>` with the name of a sortable field in your index (`criteria=\"size ascending\"`).\n\nYou can specify multiple sort criteria to be used in the same request by separating them with a comma (`criteria=\"size ascending, date ascending\"`).\n\nYou can specify a list of comma-separated sort criteria which will be applied sequentially. For example, if there's a tie on the 1st criterion, the API uses the 2nd criterion to break the tie. However, this only works when combining:\n* a relevancy criterion followed by one or more field or date criteria.\n* a qre criterion followed by one or more field or date criteria.\n* two or more field criteria (`<FIELD>` descending, `<FIELD>` descending).\n* a single date criterion and one or more field criteria in any order (`<FIELD>` descending, date ascending).\n\nExamples:\n* `relevancy`, `<FIELD> descending`\n* `qre`, `<FIELD> ascending`\n* `date descending`, `<FIELD> descending`, `<FIELD> ascending`",
|
|
14185
14185
|
"docsTags": [],
|
|
14186
14186
|
"values": [
|
|
14187
14187
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coveo/atomic",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.33.0-pre.
|
|
4
|
+
"version": "3.33.0-pre.aaa8773090",
|
|
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": {
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"@coveo/bueno": "1.1.0",
|
|
85
|
-
"@coveo/headless": "3.28.4-pre.
|
|
85
|
+
"@coveo/headless": "3.28.4-pre.aaa8773090",
|
|
86
86
|
"@lit/context": "1.1.6",
|
|
87
87
|
"@popperjs/core": "2.11.8",
|
|
88
88
|
"@salesforce-ux/design-system": "2.27.2",
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
},
|
|
170
170
|
"peerDependencies": {
|
|
171
171
|
"@coveo/bueno": "1.1.0",
|
|
172
|
-
"@coveo/headless": "3.28.4-pre.
|
|
172
|
+
"@coveo/headless": "3.28.4-pre.aaa8773090",
|
|
173
173
|
"typescript": ">=5.0.0"
|
|
174
174
|
},
|
|
175
175
|
"peerDependenciesMeta": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["AtomicSortExpression","this","tabsIncluded","tabsExcluded","render","length","console","warn","dropdownComponent","host","closest","error","Error","nodeName","toLowerCase","h","key","element","__decorate","ArrayProp"],"sources":["src/components/search/atomic-sort-expression/atomic-sort-expression.tsx"],"sourcesContent":["import {Component, Prop, Element, h} from '@stencil/core';\nimport {ArrayProp} from '../../../utils/props-utils';\n\n/**\n * The `atomic-sort-expression` component defines a sort expression. This component must be inside an `atomic-sort-dropdown` component.\n */\n@Component({\n tag: 'atomic-sort-expression',\n shadow: false,\n})\nexport class AtomicSortExpression {\n @Element() public host!: HTMLElement;\n\n /**\n * The non-localized label to display for this expression.\n */\n @Prop({reflect: true}) public label!: string;\n\n /**\n * One or more sort criteria that the end user can select or toggle between.\n *\n * The available sort criteria are:\n *\n * * `relevancy`\n * * `date ascending`/`date descending`\n * * `qre`\n * * `<FIELD> ascending`/`<FIELD> descending`, where you replace `<FIELD>` with the name of a sortable field in your index (e.g., `criteria=\"size ascending\"`).\n *\n * You can specify multiple sort criteria to be used in the same request by separating them with a comma (e.g., `criteria=\"size ascending, date ascending\"`).\n */\n @Prop({reflect: true}) public expression!: string;\n /**\n * The tabs on which the sort expression can be displayed. This property should not be used at the same time as `tabs-excluded`.\n *\n * Set this property as a stringified JSON array, e.g.,\n * ```html\n * <atomic-sort-expression tabs-included='[\"tabIDA\", \"tabIDB\"]'></atomic-sort-expression snippet>\n * ```\n * If you don't set this property, the sort expression can be displayed on any tab. Otherwise, the sort expression can only be displayed on the specified tabs.\n */\n @ArrayProp()\n @Prop({reflect: true, mutable: true})\n public tabsIncluded: string[] | string = '[]';\n\n /**\n * The tabs on which the sort expression must not be displayed. This property should not be used at the same time as `tabs-included`.\n *\n * Set this property as a stringified JSON array, e.g.,\n * ```html\n * <atomic-sort-expression tabs-excluded='[\"tabIDA\", \"tabIDB\"]'></atomic-sort-expression>\n * ```\n * If you don't set this property, the sort expression can be displayed on any tab. Otherwise, the sort expression won't be displayed on any of the specified tabs.\n */\n @ArrayProp()\n @Prop({reflect: true, mutable: true})\n public tabsExcluded: string[] | string = '[]';\n\n public render() {\n if (this.tabsIncluded.length > 0 && this.tabsExcluded.length > 0) {\n console.warn(\n 'Values for both \"tabs-included\" and \"tabs-excluded\" have been provided. This is could lead to unexpected behaviors.'\n );\n }\n\n const dropdownComponent = 'atomic-sort-dropdown';\n\n if (!this.host.closest(dropdownComponent)) {\n const error = new Error(\n `The \"${this.host.nodeName.toLowerCase()}\" component has to be used inside an ${dropdownComponent} element.`\n );\n return (\n <atomic-component-error\n element={this.host}\n error={error}\n ></atomic-component-error>\n );\n }\n }\n}\n"],"mappings":"oiBAUaA,EAAoB,M,yBAgCxBC,KAAAC,aAAkC,KAalCD,KAAAE,aAAkC,K,iEAbA,K,kBAaA,I,CAElC,MAAAC,GACL,GAAIH,KAAKC,aAAaG,OAAS,GAAKJ,KAAKE,aAAaE,OAAS,EAAG,CAChEC,QAAQC,KACN,sH,CAIJ,MAAMC,EAAoB,uBAE1B,IAAKP,KAAKQ,KAAKC,QAAQF,GAAoB,CACzC,MAAMG,EAAQ,IAAIC,MAChB,QAAQX,KAAKQ,KAAKI,SAASC,qDAAqDN,cAElF,OACEO,EAAA,0BAAAC,IAAA,2CACEC,QAAShB,KAAKQ,KACdE,MAAOA,G,8BA/BRO,EAAA,CAFNC,K,mCAeMD,EAAA,CAFNC,K","ignoreList":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|