@empathyco/x-components 10.0.2 → 10.1.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/CHANGELOG.md +7 -0
- package/core/index.js +1 -0
- package/core/index.js.map +1 -1
- package/docs/API-reference/api/x-components.arialabels.md +19 -0
- package/docs/API-reference/api/x-components.arialabels.tabs.md +13 -0
- package/docs/API-reference/api/x-components.extraparamsstate.catalogsectionparamkey.md +18 -0
- package/docs/API-reference/api/x-components.extraparamsstate.md +19 -0
- package/docs/API-reference/api/x-components.hierarchicalfilter.md +1 -0
- package/docs/API-reference/api/x-components.md +77 -0
- package/docs/API-reference/api/x-components.resetcatalogsection.md +13 -0
- package/docs/API-reference/api/x-components.reseturlcatalogsection.md +13 -0
- package/docs/API-reference/api/x-components.searchconfig.defaultcatalogsection.md +13 -0
- package/docs/API-reference/api/x-components.searchconfig.md +19 -0
- package/docs/API-reference/api/x-components.searchmutations.md +19 -0
- package/docs/API-reference/api/x-components.searchmutations.setcatalogsection.md +13 -0
- package/docs/API-reference/api/x-components.searchstate.catalogsection.md +13 -0
- package/docs/API-reference/api/x-components.searchstate.md +19 -0
- package/docs/API-reference/api/x-components.setcatalogsection.md +13 -0
- package/docs/API-reference/api/x-components.setcatalogsectionfromurl.md +13 -0
- package/docs/API-reference/api/x-components.seturlcatalogsection.md +13 -0
- package/docs/API-reference/api/x-components.seturlparams.md +1 -1
- package/docs/API-reference/api/x-components.simplefilter.md +1 -0
- package/docs/API-reference/api/x-components.snippetcallbacks.md +1 -0
- package/docs/API-reference/api/x-components.tab.click.md +13 -0
- package/docs/API-reference/api/x-components.tab.id.md +13 -0
- package/docs/API-reference/api/x-components.tab.label.md +13 -0
- package/docs/API-reference/api/x-components.tab.md +115 -0
- package/docs/API-reference/api/x-components.tab.selected.md +13 -0
- package/docs/API-reference/api/x-components.tabs.md +29 -0
- package/docs/API-reference/api/x-components.urlmutations.md +19 -0
- package/docs/API-reference/api/x-components.urlmutations.setcatalogsection.md +13 -0
- package/docs/API-reference/api/x-components.urlparams.catalogsection.md +11 -0
- package/docs/API-reference/api/x-components.urlparams.md +17 -0
- package/docs/API-reference/api/x-components.xeventstypes.md +19 -0
- package/docs/API-reference/api/x-components.xeventstypes.userselectedacatalogsection.md +13 -0
- package/docs/API-reference/components/common/tabs/x-components.tabs.md +24 -0
- package/js/components/tabs/tabs.vue.js +44 -0
- package/js/components/tabs/tabs.vue.js.map +1 -0
- package/js/components/tabs/tabs.vue2.js +44 -0
- package/js/components/tabs/tabs.vue2.js.map +1 -0
- package/js/index.js +3 -2
- package/js/index.js.map +1 -1
- package/js/types/accessibility.js.map +1 -1
- package/js/x-modules/ai/components/ai-carousel.vue2.js +1 -0
- package/js/x-modules/ai/components/ai-carousel.vue2.js.map +1 -1
- package/js/x-modules/ai/components/ai-grouped-carousel.vue2.js +1 -0
- package/js/x-modules/ai/components/ai-grouped-carousel.vue2.js.map +1 -1
- package/js/x-modules/empathize/components/empathize.vue2.js +1 -0
- package/js/x-modules/empathize/components/empathize.vue2.js.map +1 -1
- package/js/x-modules/extra-params/store/emitters.js +23 -2
- package/js/x-modules/extra-params/store/emitters.js.map +1 -1
- package/js/x-modules/extra-params/store/module.js +1 -0
- package/js/x-modules/extra-params/store/module.js.map +1 -1
- package/js/x-modules/queries-preview/components/query-preview-button.vue2.js +1 -0
- package/js/x-modules/queries-preview/components/query-preview-button.vue2.js.map +1 -1
- package/js/x-modules/queries-preview/components/query-preview.vue2.js +1 -0
- package/js/x-modules/queries-preview/components/query-preview.vue2.js.map +1 -1
- package/js/x-modules/scroll/components/scroll-to-top.vue2.js +1 -0
- package/js/x-modules/scroll/components/scroll-to-top.vue2.js.map +1 -1
- package/js/x-modules/search/store/getters/request.getter.js +24 -10
- package/js/x-modules/search/store/getters/request.getter.js.map +1 -1
- package/js/x-modules/search/store/module.js +5 -0
- package/js/x-modules/search/store/module.js.map +1 -1
- package/js/x-modules/search/wiring.js +29 -1
- package/js/x-modules/search/wiring.js.map +1 -1
- package/js/x-modules/url/components/url-handler.vue.js.map +1 -1
- package/js/x-modules/url/components/url-handler.vue2.js +6 -2
- package/js/x-modules/url/components/url-handler.vue2.js.map +1 -1
- package/js/x-modules/url/store/initial-state.js +1 -0
- package/js/x-modules/url/store/initial-state.js.map +1 -1
- package/js/x-modules/url/store/module.js +3 -0
- package/js/x-modules/url/store/module.js.map +1 -1
- package/js/x-modules/url/wiring.js +19 -1
- package/js/x-modules/url/wiring.js.map +1 -1
- package/package.json +3 -3
- package/report/x-components.api.json +671 -5
- package/report/x-components.api.md +77 -6
- package/search/index.js +1 -1
- package/types/src/components/index.d.ts +1 -0
- package/types/src/components/index.d.ts.map +1 -1
- package/types/src/components/snippet-callbacks.vue.d.ts +1 -0
- package/types/src/components/snippet-callbacks.vue.d.ts.map +1 -1
- package/types/src/components/tabs/index.d.ts +3 -0
- package/types/src/components/tabs/index.d.ts.map +1 -0
- package/types/src/components/tabs/tab.types.d.ts +16 -0
- package/types/src/components/tabs/tab.types.d.ts.map +1 -0
- package/types/src/components/tabs/tabs.vue.d.ts +48 -0
- package/types/src/components/tabs/tabs.vue.d.ts.map +1 -0
- package/types/src/types/accessibility.d.ts +3 -0
- package/types/src/types/accessibility.d.ts.map +1 -1
- package/types/src/types/url-params.d.ts +1 -0
- package/types/src/types/url-params.d.ts.map +1 -1
- package/types/src/wiring/events.types.d.ts +5 -0
- package/types/src/wiring/events.types.d.ts.map +1 -1
- package/types/src/x-modules/extra-params/store/emitters.d.ts +4 -1
- package/types/src/x-modules/extra-params/store/emitters.d.ts.map +1 -1
- package/types/src/x-modules/extra-params/store/module.d.ts.map +1 -1
- package/types/src/x-modules/extra-params/store/types.d.ts +8 -0
- package/types/src/x-modules/extra-params/store/types.d.ts.map +1 -1
- package/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts +1 -0
- package/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts.map +1 -1
- package/types/src/x-modules/facets/components/filters/simple-filter.vue.d.ts +1 -0
- package/types/src/x-modules/facets/components/filters/simple-filter.vue.d.ts.map +1 -1
- package/types/src/x-modules/search/config.types.d.ts +5 -0
- package/types/src/x-modules/search/config.types.d.ts.map +1 -1
- package/types/src/x-modules/search/store/getters/request.getter.d.ts +2 -0
- package/types/src/x-modules/search/store/getters/request.getter.d.ts.map +1 -1
- package/types/src/x-modules/search/store/module.d.ts.map +1 -1
- package/types/src/x-modules/search/store/types.d.ts +14 -0
- package/types/src/x-modules/search/store/types.d.ts.map +1 -1
- package/types/src/x-modules/search/wiring.d.ts +31 -2
- package/types/src/x-modules/search/wiring.d.ts.map +1 -1
- package/types/src/x-modules/url/components/url-handler.vue.d.ts.map +1 -1
- package/types/src/x-modules/url/store/initial-state.d.ts.map +1 -1
- package/types/src/x-modules/url/store/module.d.ts.map +1 -1
- package/types/src/x-modules/url/store/types.d.ts +6 -0
- package/types/src/x-modules/url/store/types.d.ts.map +1 -1
- package/types/src/x-modules/url/wiring.d.ts +18 -0
- package/types/src/x-modules/url/wiring.d.ts.map +1 -1
- package/url/index.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [10.1.0](https://github.com/empathyco/x/compare/@empathyco/x-components@10.0.2...@empathyco/x-components@10.1.0) (2026-10-19)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* create tabs component (#2188)
|
|
11
|
+
|
|
12
|
+
|
|
6
13
|
## [10.0.2](https://github.com/empathyco/x/compare/@empathyco/x-components@10.0.1...@empathyco/x-components@10.0.2) (2026-10-16)
|
|
7
14
|
|
|
8
15
|
### Bug Fixes
|
package/core/index.js
CHANGED
|
@@ -150,6 +150,7 @@ export { default as SortList } from '../js/components/sort/sort-list.vue.js';
|
|
|
150
150
|
export { default as SortPickerList } from '../js/components/sort/sort-picker-list.vue.js';
|
|
151
151
|
export { default as BaseSuggestion } from '../js/components/suggestions/base-suggestion.vue.js';
|
|
152
152
|
export { default as BaseSuggestions } from '../js/components/suggestions/base-suggestions.vue.js';
|
|
153
|
+
export { default as Tabs } from '../js/components/tabs/tabs.vue.js';
|
|
153
154
|
export { getRootXComponent, getXComponentXModuleName, isXComponent } from '../js/components/x-component.utils.js';
|
|
154
155
|
export { createUseDevice } from '../js/composables/create-use-device.js';
|
|
155
156
|
export { use$x } from '../js/composables/use-_x.js';
|
package/core/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -414,6 +414,25 @@ _(Optional)_
|
|
|
414
414
|
_(Optional)_
|
|
415
415
|
|
|
416
416
|
|
|
417
|
+
</td></tr>
|
|
418
|
+
<tr><td>
|
|
419
|
+
|
|
420
|
+
[tabs?](./x-components.arialabels.tabs.md)
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
</td><td>
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
</td><td>
|
|
427
|
+
|
|
428
|
+
{ root?: string; }
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
</td><td>
|
|
432
|
+
|
|
433
|
+
_(Optional)_
|
|
434
|
+
|
|
435
|
+
|
|
417
436
|
</td></tr>
|
|
418
437
|
</tbody></table>
|
|
419
438
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [AriaLabels](./x-components.arialabels.md) > [tabs](./x-components.arialabels.tabs.md)
|
|
4
|
+
|
|
5
|
+
## AriaLabels.tabs property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
tabs?: {
|
|
11
|
+
root?: string;
|
|
12
|
+
};
|
|
13
|
+
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [ExtraParamsState](./x-components.extraparamsstate.md) > [catalogSectionParamKey](./x-components.extraparamsstate.catalogsectionparamkey.md)
|
|
4
|
+
|
|
5
|
+
## ExtraParamsState.catalogSectionParamKey property
|
|
6
|
+
|
|
7
|
+
Key used to send the catalog section to the search API. It is consumed by the [SearchXModule](./x-components.searchxmodule.md) request getter, which writes the section under this key, and by the `ExtraParamsChanged` emitter, which omits it so it is not broadcast to the other modules.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
catalogSectionParamKey: string;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Default Value
|
|
16
|
+
|
|
17
|
+
'catalogSection'
|
|
18
|
+
|
|
@@ -37,6 +37,25 @@ Description
|
|
|
37
37
|
</th></tr></thead>
|
|
38
38
|
<tbody><tr><td>
|
|
39
39
|
|
|
40
|
+
[catalogSectionParamKey](./x-components.extraparamsstate.catalogsectionparamkey.md)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td><td>
|
|
47
|
+
|
|
48
|
+
string
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
</td><td>
|
|
52
|
+
|
|
53
|
+
Key used to send the catalog section to the search API. It is consumed by the [SearchXModule](./x-components.searchxmodule.md) request getter, which writes the section under this key, and by the `ExtraParamsChanged` emitter, which omits it so it is not broadcast to the other modules.
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
</td></tr>
|
|
57
|
+
<tr><td>
|
|
58
|
+
|
|
40
59
|
[params](./x-components.extraparamsstate.params.md)
|
|
41
60
|
|
|
42
61
|
|
|
@@ -49,6 +49,7 @@ _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
|
49
49
|
UserOpenXProgrammatically?: void | undefined;
|
|
50
50
|
UserPressedArrowKey?: import("../../../..").ArrowKey | undefined;
|
|
51
51
|
UserReachedEmpathizeTop?: void | undefined;
|
|
52
|
+
UserSelectedACatalogSection?: string | undefined;
|
|
52
53
|
UserSelectedAResultVariant?: {
|
|
53
54
|
result: import("@empathyco/x-types").Result;
|
|
54
55
|
variant: import("@empathyco/x-types").ResultVariant;
|
|
@@ -3152,6 +3152,17 @@ Type safe which allows the access to the State and the Getters of a [XStoreModul
|
|
|
3152
3152
|
Represents an object including an eventPayload, which type is extracted using [EventPayload](./x-components.eventpayload.md)<!-- -->, and a metadata which type is taken from the SomeEventMetadata parameter of this type.
|
|
3153
3153
|
|
|
3154
3154
|
|
|
3155
|
+
</td></tr>
|
|
3156
|
+
<tr><td>
|
|
3157
|
+
|
|
3158
|
+
[Tab](./x-components.tab.md)
|
|
3159
|
+
|
|
3160
|
+
|
|
3161
|
+
</td><td>
|
|
3162
|
+
|
|
3163
|
+
The shape of a single item rendered by [Tabs](./x-components.tabs.md)<!-- -->.
|
|
3164
|
+
|
|
3165
|
+
|
|
3155
3166
|
</td></tr>
|
|
3156
3167
|
<tr><td>
|
|
3157
3168
|
|
|
@@ -6209,6 +6220,17 @@ Resets the browse state to reload the current browse.
|
|
|
6209
6220
|
Resets the browse state when the request is changed to null. See the [BrowseXStoreModule](./x-components.browsexstoremodule.md) for details.
|
|
6210
6221
|
|
|
6211
6222
|
|
|
6223
|
+
</td></tr>
|
|
6224
|
+
<tr><td>
|
|
6225
|
+
|
|
6226
|
+
[resetCatalogSection](./x-components.resetcatalogsection.md)
|
|
6227
|
+
|
|
6228
|
+
|
|
6229
|
+
</td><td>
|
|
6230
|
+
|
|
6231
|
+
Resets the search state `catalogSection` to an empty value, so the request sends the configured default catalog section instead of the selected one.
|
|
6232
|
+
|
|
6233
|
+
|
|
6212
6234
|
</td></tr>
|
|
6213
6235
|
<tr><td>
|
|
6214
6236
|
|
|
@@ -6352,6 +6374,17 @@ Resets the search state when the request is changed to null. See the [SearchXSto
|
|
|
6352
6374
|
Sets the browseCategory of the url module.
|
|
6353
6375
|
|
|
6354
6376
|
|
|
6377
|
+
</td></tr>
|
|
6378
|
+
<tr><td>
|
|
6379
|
+
|
|
6380
|
+
[resetUrlCatalogSection](./x-components.reseturlcatalogsection.md)
|
|
6381
|
+
|
|
6382
|
+
|
|
6383
|
+
</td><td>
|
|
6384
|
+
|
|
6385
|
+
Resets the catalog section of the url module.
|
|
6386
|
+
|
|
6387
|
+
|
|
6355
6388
|
</td></tr>
|
|
6356
6389
|
<tr><td>
|
|
6357
6390
|
|
|
@@ -6828,6 +6861,28 @@ Default implementation for the [BrowseActions.setUrlParams](./x-components.brows
|
|
|
6828
6861
|
Sets the browse state `query`<!-- -->.
|
|
6829
6862
|
|
|
6830
6863
|
|
|
6864
|
+
</td></tr>
|
|
6865
|
+
<tr><td>
|
|
6866
|
+
|
|
6867
|
+
[setCatalogSection](./x-components.setcatalogsection.md)
|
|
6868
|
+
|
|
6869
|
+
|
|
6870
|
+
</td><td>
|
|
6871
|
+
|
|
6872
|
+
Sets the search state `catalogSection`<!-- -->.
|
|
6873
|
+
|
|
6874
|
+
|
|
6875
|
+
</td></tr>
|
|
6876
|
+
<tr><td>
|
|
6877
|
+
|
|
6878
|
+
[setCatalogSectionFromUrl](./x-components.setcatalogsectionfromurl.md)
|
|
6879
|
+
|
|
6880
|
+
|
|
6881
|
+
</td><td>
|
|
6882
|
+
|
|
6883
|
+
Sets the search state `catalogSection` with the one loaded from the URL. The `catalogSection` URL param is optional, so an empty value means no section was provided, and the current selection is kept by setting `undefined`<!-- -->.
|
|
6884
|
+
|
|
6885
|
+
|
|
6831
6886
|
</td></tr>
|
|
6832
6887
|
<tr><td>
|
|
6833
6888
|
|
|
@@ -7598,6 +7653,17 @@ Sets the total results.
|
|
|
7598
7653
|
Sets the browseCategory of the url module.
|
|
7599
7654
|
|
|
7600
7655
|
|
|
7656
|
+
</td></tr>
|
|
7657
|
+
<tr><td>
|
|
7658
|
+
|
|
7659
|
+
[setUrlCatalogSection](./x-components.seturlcatalogsection.md)
|
|
7660
|
+
|
|
7661
|
+
|
|
7662
|
+
</td><td>
|
|
7663
|
+
|
|
7664
|
+
Sets the catalog section of the url module.
|
|
7665
|
+
|
|
7666
|
+
|
|
7601
7667
|
</td></tr>
|
|
7602
7668
|
<tr><td>
|
|
7603
7669
|
|
|
@@ -7916,6 +7982,17 @@ Renders a transition group wrapping the elements passed in the default slot and
|
|
|
7916
7982
|
Default implementation for the [HistoryQueriesGetters.storageKey](./x-components.historyqueriesgetters.storagekey.md) getter.
|
|
7917
7983
|
|
|
7918
7984
|
|
|
7985
|
+
</td></tr>
|
|
7986
|
+
<tr><td>
|
|
7987
|
+
|
|
7988
|
+
[Tabs](./x-components.tabs.md)
|
|
7989
|
+
|
|
7990
|
+
|
|
7991
|
+
</td><td>
|
|
7992
|
+
|
|
7993
|
+
Renders a list of tabs from the given `items`<!-- -->. It keeps track of the selected tab internally: clicking a tab marks it as selected and invokes its `click` callback.
|
|
7994
|
+
|
|
7995
|
+
|
|
7919
7996
|
</td></tr>
|
|
7920
7997
|
<tr><td>
|
|
7921
7998
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [resetCatalogSection](./x-components.resetcatalogsection.md)
|
|
4
|
+
|
|
5
|
+
## resetCatalogSection variable
|
|
6
|
+
|
|
7
|
+
Resets the search state `catalogSection` to an empty value, so the request sends the configured default catalog section instead of the selected one.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
resetCatalogSection: import("../../wiring").AnyWire
|
|
13
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [resetUrlCatalogSection](./x-components.reseturlcatalogsection.md)
|
|
4
|
+
|
|
5
|
+
## resetUrlCatalogSection variable
|
|
6
|
+
|
|
7
|
+
Resets the catalog section of the url module.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
resetUrlCatalogSection: import("../..").AnyWire
|
|
13
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [SearchConfig](./x-components.searchconfig.md) > [defaultCatalogSection](./x-components.searchconfig.defaultcatalogsection.md)
|
|
4
|
+
|
|
5
|
+
## SearchConfig.defaultCatalogSection property
|
|
6
|
+
|
|
7
|
+
Catalog section sent when no catalog section has been selected, either because none was provided or because it was reset to an empty value.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
defaultCatalogSection: string;
|
|
13
|
+
```
|
|
@@ -37,6 +37,25 @@ Description
|
|
|
37
37
|
</th></tr></thead>
|
|
38
38
|
<tbody><tr><td>
|
|
39
39
|
|
|
40
|
+
[defaultCatalogSection](./x-components.searchconfig.defaultcatalogsection.md)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td><td>
|
|
47
|
+
|
|
48
|
+
string
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
</td><td>
|
|
52
|
+
|
|
53
|
+
Catalog section sent when no catalog section has been selected, either because none was provided or because it was reset to an empty value.
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
</td></tr>
|
|
57
|
+
<tr><td>
|
|
58
|
+
|
|
40
59
|
[pageMode](./x-components.searchconfig.pagemode.md)
|
|
41
60
|
|
|
42
61
|
|
|
@@ -111,6 +111,25 @@ Resets the "resettable" part of the Search state like [SearchMutations.resetStat
|
|
|
111
111
|
Sets the banners of the module.
|
|
112
112
|
|
|
113
113
|
|
|
114
|
+
</td></tr>
|
|
115
|
+
<tr><td>
|
|
116
|
+
|
|
117
|
+
[setCatalogSection](./x-components.searchmutations.setcatalogsection.md)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
</td><td>
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
</td><td>
|
|
124
|
+
|
|
125
|
+
(catalogSection: string \| undefined) => void
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
</td><td>
|
|
129
|
+
|
|
130
|
+
Sets the id of the selected catalog section.
|
|
131
|
+
|
|
132
|
+
|
|
114
133
|
</td></tr>
|
|
115
134
|
<tr><td>
|
|
116
135
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [SearchMutations](./x-components.searchmutations.md) > [setCatalogSection](./x-components.searchmutations.setcatalogsection.md)
|
|
4
|
+
|
|
5
|
+
## SearchMutations.setCatalogSection property
|
|
6
|
+
|
|
7
|
+
Sets the id of the selected catalog section.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
setCatalogSection: (catalogSection: string | undefined) => void;
|
|
13
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [SearchState](./x-components.searchstate.md) > [catalogSection](./x-components.searchstate.catalogsection.md)
|
|
4
|
+
|
|
5
|
+
## SearchState.catalogSection property
|
|
6
|
+
|
|
7
|
+
The id of the catalog section selected for the current search, either by the user or loaded from the URL. It is `undefined` when no section has been provided, so the [SearchGetters.request](./x-components.searchgetters.request.md) can fall back to the extra params and, finally, to the [SearchConfig.defaultCatalogSection](./x-components.searchconfig.defaultcatalogsection.md)<!-- -->.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
catalogSection: string | undefined;
|
|
13
|
+
```
|
|
@@ -54,6 +54,25 @@ Banner\[\]
|
|
|
54
54
|
The list of the banners, related to the `query` property of the state.
|
|
55
55
|
|
|
56
56
|
|
|
57
|
+
</td></tr>
|
|
58
|
+
<tr><td>
|
|
59
|
+
|
|
60
|
+
[catalogSection](./x-components.searchstate.catalogsection.md)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
</td><td>
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
</td><td>
|
|
67
|
+
|
|
68
|
+
string \| undefined
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
</td><td>
|
|
72
|
+
|
|
73
|
+
The id of the catalog section selected for the current search, either by the user or loaded from the URL. It is `undefined` when no section has been provided, so the [SearchGetters.request](./x-components.searchgetters.request.md) can fall back to the extra params and, finally, to the [SearchConfig.defaultCatalogSection](./x-components.searchconfig.defaultcatalogsection.md)<!-- -->.
|
|
74
|
+
|
|
75
|
+
|
|
57
76
|
</td></tr>
|
|
58
77
|
<tr><td>
|
|
59
78
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [setCatalogSection](./x-components.setcatalogsection.md)
|
|
4
|
+
|
|
5
|
+
## setCatalogSection variable
|
|
6
|
+
|
|
7
|
+
Sets the search state `catalogSection`<!-- -->.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
setCatalogSection: import("../../wiring").Wire<string | undefined>
|
|
13
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [setCatalogSectionFromUrl](./x-components.setcatalogsectionfromurl.md)
|
|
4
|
+
|
|
5
|
+
## setCatalogSectionFromUrl variable
|
|
6
|
+
|
|
7
|
+
Sets the search state `catalogSection` with the one loaded from the URL. The `catalogSection` URL param is optional, so an empty value means no section was provided, and the current selection is kept by setting `undefined`<!-- -->.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
setCatalogSectionFromUrl: import("../../wiring").AnyWire
|
|
13
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [setUrlCatalogSection](./x-components.seturlcatalogsection.md)
|
|
4
|
+
|
|
5
|
+
## setUrlCatalogSection variable
|
|
6
|
+
|
|
7
|
+
Sets the catalog section of the url module.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
setUrlCatalogSection: import("../..").Wire<string>
|
|
13
|
+
```
|
|
@@ -46,6 +46,7 @@ _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
|
46
46
|
UserOpenXProgrammatically?: void | undefined;
|
|
47
47
|
UserPressedArrowKey?: import("../../../..").ArrowKey | undefined;
|
|
48
48
|
UserReachedEmpathizeTop?: void | undefined;
|
|
49
|
+
UserSelectedACatalogSection?: string | undefined;
|
|
49
50
|
UserSelectedAResultVariant?: {
|
|
50
51
|
result: import("@empathyco/x-types").Result;
|
|
51
52
|
variant: import("@empathyco/x-types").ResultVariant;
|
|
@@ -36,6 +36,7 @@ _default: import("vue").DefineComponent<{}, {
|
|
|
36
36
|
UserOpenXProgrammatically: (payload: undefined, metadata: WireMetadata) => unknown;
|
|
37
37
|
UserPressedArrowKey: (payload: import("..").ArrowKey, metadata: WireMetadata) => unknown;
|
|
38
38
|
UserReachedEmpathizeTop: (payload: undefined, metadata: WireMetadata) => unknown;
|
|
39
|
+
UserSelectedACatalogSection: (payload: string, metadata: WireMetadata) => unknown;
|
|
39
40
|
UserSelectedAResultVariant: (payload: {
|
|
40
41
|
result: import("@empathyco/x-types").Result;
|
|
41
42
|
variant: import("@empathyco/x-types").ResultVariant;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [Tab](./x-components.tab.md) > [click](./x-components.tab.click.md)
|
|
4
|
+
|
|
5
|
+
## Tab.click property
|
|
6
|
+
|
|
7
|
+
Callback invoked when the tab is clicked.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
click: () => void;
|
|
13
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [Tab](./x-components.tab.md) > [id](./x-components.tab.id.md)
|
|
4
|
+
|
|
5
|
+
## Tab.id property
|
|
6
|
+
|
|
7
|
+
The unique id of the tab.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
id: string;
|
|
13
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [Tab](./x-components.tab.md) > [label](./x-components.tab.label.md)
|
|
4
|
+
|
|
5
|
+
## Tab.label property
|
|
6
|
+
|
|
7
|
+
Text label rendered inside the tab.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
label: string;
|
|
13
|
+
```
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [Tab](./x-components.tab.md)
|
|
4
|
+
|
|
5
|
+
## Tab interface
|
|
6
|
+
|
|
7
|
+
The shape of a single item rendered by [Tabs](./x-components.tabs.md)<!-- -->.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export interface Tab
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
<table><thead><tr><th>
|
|
18
|
+
|
|
19
|
+
Property
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
</th><th>
|
|
23
|
+
|
|
24
|
+
Modifiers
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</th><th>
|
|
28
|
+
|
|
29
|
+
Type
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
</th><th>
|
|
33
|
+
|
|
34
|
+
Description
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
</th></tr></thead>
|
|
38
|
+
<tbody><tr><td>
|
|
39
|
+
|
|
40
|
+
[click](./x-components.tab.click.md)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td><td>
|
|
47
|
+
|
|
48
|
+
() => void
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
</td><td>
|
|
52
|
+
|
|
53
|
+
Callback invoked when the tab is clicked.
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
</td></tr>
|
|
57
|
+
<tr><td>
|
|
58
|
+
|
|
59
|
+
[id](./x-components.tab.id.md)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
</td><td>
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
</td><td>
|
|
66
|
+
|
|
67
|
+
string
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</td><td>
|
|
71
|
+
|
|
72
|
+
The unique id of the tab.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
</td></tr>
|
|
76
|
+
<tr><td>
|
|
77
|
+
|
|
78
|
+
[label](./x-components.tab.label.md)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
</td><td>
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
</td><td>
|
|
85
|
+
|
|
86
|
+
string
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
</td><td>
|
|
90
|
+
|
|
91
|
+
Text label rendered inside the tab.
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
</td></tr>
|
|
95
|
+
<tr><td>
|
|
96
|
+
|
|
97
|
+
[selected?](./x-components.tab.selected.md)
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
</td><td>
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
</td><td>
|
|
104
|
+
|
|
105
|
+
boolean
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
</td><td>
|
|
109
|
+
|
|
110
|
+
_(Optional)_ Tab selected state.
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
</td></tr>
|
|
114
|
+
</tbody></table>
|
|
115
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [Tab](./x-components.tab.md) > [selected](./x-components.tab.selected.md)
|
|
4
|
+
|
|
5
|
+
## Tab.selected property
|
|
6
|
+
|
|
7
|
+
Tab selected state.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
selected?: boolean;
|
|
13
|
+
```
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [Tabs](./x-components.tabs.md)
|
|
4
|
+
|
|
5
|
+
## Tabs variable
|
|
6
|
+
|
|
7
|
+
Renders a list of tabs from the given `items`<!-- -->. It keeps track of the selected tab internally: clicking a tab marks it as selected and invokes its `click` callback.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
_default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
13
|
+
items: {
|
|
14
|
+
type: PropType<Tab[]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
itemClasses: StringConstructor;
|
|
18
|
+
}>, {
|
|
19
|
+
ariaLabels: import("vue").ComputedRef<{
|
|
20
|
+
root?: string;
|
|
21
|
+
}>;
|
|
22
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
items: {
|
|
24
|
+
type: PropType<Tab[]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
itemClasses: StringConstructor;
|
|
28
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>
|
|
29
|
+
```
|