@empathyco/x-components 6.0.0-alpha.180 → 6.0.0-alpha.181
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 +8 -0
- package/docs/API-reference/api/x-adapter-platform.facetsendpointadapter.md +13 -0
- package/docs/API-reference/api/x-adapter-platform.facetsrequestschema.md +13 -0
- package/docs/API-reference/api/x-adapter-platform.facetsresponsemapper.md +13 -0
- package/docs/API-reference/api/x-adapter-platform.md +5 -0
- package/docs/API-reference/api/x-adapter-platform.platformfacetsrequest.md +15 -0
- package/docs/API-reference/api/x-adapter-platform.platformfacetsresponse.catalog.md +13 -0
- package/docs/API-reference/api/x-adapter-platform.platformfacetsresponse.md +20 -0
- package/docs/API-reference/api/x-components.applyhierarchicalselection.md +25 -0
- package/docs/API-reference/api/x-components.facetsactions.cancelfetchandsavefacetsresponse.md +13 -0
- package/docs/API-reference/api/x-components.facetsactions.fetchandsavefacetsresponse.md +13 -0
- package/docs/API-reference/api/x-components.facetsactions.fetchfacetsresponse.md +13 -0
- package/docs/API-reference/api/x-components.facetsactions.md +10 -0
- package/docs/API-reference/api/x-components.facetsactions.saveorigin.md +13 -0
- package/docs/API-reference/api/x-components.facetsgetters.md +1 -0
- package/docs/API-reference/api/x-components.facetsgetters.request.md +13 -0
- package/docs/API-reference/api/x-components.facetsmutations.md +4 -2
- package/docs/API-reference/api/x-components.facetsmutations.setorigin.md +13 -0
- package/docs/API-reference/api/x-components.facetsmutations.setparams.md +13 -0
- package/docs/API-reference/api/x-components.facetsstate.md +4 -2
- package/docs/API-reference/api/x-components.facetsstate.origin.md +13 -0
- package/docs/API-reference/api/x-components.facetsstate.params.md +13 -0
- package/docs/API-reference/api/x-components.flattenallfilters.md +26 -0
- package/docs/API-reference/api/x-components.md +2 -0
- package/docs/API-reference/api/x-types.facetsrequest.md +15 -0
- package/docs/API-reference/api/x-types.facetsresponse.facets.md +11 -0
- package/docs/API-reference/api/x-types.facetsresponse.md +20 -0
- package/docs/API-reference/api/x-types.md +2 -0
- package/docs/API-reference/api/x-types.xcomponentsadapter.facets.md +11 -0
- package/docs/API-reference/api/x-types.xcomponentsadapter.md +1 -0
- package/facets/index.js +1 -1
- package/js/index.js +1 -1
- package/js/x-modules/facets/store/actions/fetch-and-save-facets-response.action.js +38 -0
- package/js/x-modules/facets/store/actions/fetch-and-save-facets-response.action.js.map +1 -0
- package/js/x-modules/facets/store/actions/fetch-facets-response.action.js +16 -0
- package/js/x-modules/facets/store/actions/fetch-facets-response.action.js.map +1 -0
- package/js/x-modules/facets/store/actions/save-origin.action.js +16 -0
- package/js/x-modules/facets/store/actions/save-origin.action.js.map +1 -0
- package/js/x-modules/facets/store/getters/request.getter.js +23 -0
- package/js/x-modules/facets/store/getters/request.getter.js.map +1 -0
- package/js/x-modules/facets/store/module.js +23 -1
- package/js/x-modules/facets/store/module.js.map +1 -1
- package/js/x-modules/facets/utils.js +43 -1
- package/js/x-modules/facets/utils.js.map +1 -1
- package/package.json +4 -4
- package/report/x-adapter-platform.api.json +274 -0
- package/report/x-components.api.json +465 -17
- package/report/x-components.api.md +21 -4
- package/report/x-types.api.json +170 -0
- package/types/adapter/e2e-adapter.d.ts.map +1 -1
- package/types/x-modules/facets/store/actions/fetch-and-save-facets-response.action.d.ts +5 -0
- package/types/x-modules/facets/store/actions/fetch-and-save-facets-response.action.d.ts.map +1 -0
- package/types/x-modules/facets/store/actions/fetch-facets-response.action.d.ts +13 -0
- package/types/x-modules/facets/store/actions/fetch-facets-response.action.d.ts.map +1 -0
- package/types/x-modules/facets/store/actions/save-origin.action.d.ts +11 -0
- package/types/x-modules/facets/store/actions/save-origin.action.d.ts.map +1 -0
- package/types/x-modules/facets/store/getters/request.getter.d.ts +13 -0
- package/types/x-modules/facets/store/getters/request.getter.d.ts.map +1 -0
- package/types/x-modules/facets/store/module.d.ts.map +1 -1
- package/types/x-modules/facets/store/types.d.ts +48 -7
- package/types/x-modules/facets/store/types.d.ts.map +1 -1
- package/types/x-modules/facets/utils.d.ts +19 -1
- package/types/x-modules/facets/utils.d.ts.map +1 -1
- package/types/x-modules/related-prompts/components/related-prompts-tag-list.vue.d.ts.map +1 -1
- package/docs/API-reference/api/x-components.facetsstate.query.md +0 -13
|
@@ -3676,6 +3676,77 @@
|
|
|
3676
3676
|
"endIndex": 5
|
|
3677
3677
|
}
|
|
3678
3678
|
},
|
|
3679
|
+
{
|
|
3680
|
+
"kind": "Function",
|
|
3681
|
+
"canonicalReference": "@empathyco/x-components!applyHierarchicalSelection:function(1)",
|
|
3682
|
+
"docComment": "/**\n * Recursively applies the selected state to hierarchical filters and their children.\n *\n * @param filters - The hierarchical filters to update.\n *\n * @param selectedIds - The set of selected filter ids.\n *\n * @public\n */\n",
|
|
3683
|
+
"excerptTokens": [
|
|
3684
|
+
{
|
|
3685
|
+
"kind": "Content",
|
|
3686
|
+
"text": "export declare function applyHierarchicalSelection(filters: "
|
|
3687
|
+
},
|
|
3688
|
+
{
|
|
3689
|
+
"kind": "Reference",
|
|
3690
|
+
"text": "HierarchicalFilter",
|
|
3691
|
+
"canonicalReference": "@empathyco/x-components!HierarchicalFilter_2:interface"
|
|
3692
|
+
},
|
|
3693
|
+
{
|
|
3694
|
+
"kind": "Content",
|
|
3695
|
+
"text": "[]"
|
|
3696
|
+
},
|
|
3697
|
+
{
|
|
3698
|
+
"kind": "Content",
|
|
3699
|
+
"text": ", selectedIds: "
|
|
3700
|
+
},
|
|
3701
|
+
{
|
|
3702
|
+
"kind": "Reference",
|
|
3703
|
+
"text": "Set",
|
|
3704
|
+
"canonicalReference": "!Set:interface"
|
|
3705
|
+
},
|
|
3706
|
+
{
|
|
3707
|
+
"kind": "Content",
|
|
3708
|
+
"text": "<string | number>"
|
|
3709
|
+
},
|
|
3710
|
+
{
|
|
3711
|
+
"kind": "Content",
|
|
3712
|
+
"text": "): "
|
|
3713
|
+
},
|
|
3714
|
+
{
|
|
3715
|
+
"kind": "Content",
|
|
3716
|
+
"text": "void"
|
|
3717
|
+
},
|
|
3718
|
+
{
|
|
3719
|
+
"kind": "Content",
|
|
3720
|
+
"text": ";"
|
|
3721
|
+
}
|
|
3722
|
+
],
|
|
3723
|
+
"fileUrlPath": "src/x-modules/facets/utils.ts",
|
|
3724
|
+
"returnTypeTokenRange": {
|
|
3725
|
+
"startIndex": 7,
|
|
3726
|
+
"endIndex": 8
|
|
3727
|
+
},
|
|
3728
|
+
"releaseTag": "Public",
|
|
3729
|
+
"overloadIndex": 1,
|
|
3730
|
+
"parameters": [
|
|
3731
|
+
{
|
|
3732
|
+
"parameterName": "filters",
|
|
3733
|
+
"parameterTypeTokenRange": {
|
|
3734
|
+
"startIndex": 1,
|
|
3735
|
+
"endIndex": 3
|
|
3736
|
+
},
|
|
3737
|
+
"isOptional": false
|
|
3738
|
+
},
|
|
3739
|
+
{
|
|
3740
|
+
"parameterName": "selectedIds",
|
|
3741
|
+
"parameterTypeTokenRange": {
|
|
3742
|
+
"startIndex": 4,
|
|
3743
|
+
"endIndex": 6
|
|
3744
|
+
},
|
|
3745
|
+
"isOptional": false
|
|
3746
|
+
}
|
|
3747
|
+
],
|
|
3748
|
+
"name": "applyHierarchicalSelection"
|
|
3749
|
+
},
|
|
3679
3750
|
{
|
|
3680
3751
|
"kind": "Function",
|
|
3681
3752
|
"canonicalReference": "@empathyco/x-components!areFiltersDifferent:function(1)",
|
|
@@ -23184,7 +23255,148 @@
|
|
|
23184
23255
|
"releaseTag": "Public",
|
|
23185
23256
|
"name": "FacetsActions",
|
|
23186
23257
|
"preserveMemberOrder": false,
|
|
23187
|
-
"members": [
|
|
23258
|
+
"members": [
|
|
23259
|
+
{
|
|
23260
|
+
"kind": "PropertySignature",
|
|
23261
|
+
"canonicalReference": "@empathyco/x-components!FacetsActions#cancelFetchAndSaveFacetsResponse:member",
|
|
23262
|
+
"docComment": "/**\n * Cancels / interrupt {@link FacetsActions.cancelFetchAndSaveFacetsResponse} synchronous promise.\n */\n",
|
|
23263
|
+
"excerptTokens": [
|
|
23264
|
+
{
|
|
23265
|
+
"kind": "Content",
|
|
23266
|
+
"text": "cancelFetchAndSaveFacetsResponse: "
|
|
23267
|
+
},
|
|
23268
|
+
{
|
|
23269
|
+
"kind": "Content",
|
|
23270
|
+
"text": "() => void"
|
|
23271
|
+
},
|
|
23272
|
+
{
|
|
23273
|
+
"kind": "Content",
|
|
23274
|
+
"text": ";"
|
|
23275
|
+
}
|
|
23276
|
+
],
|
|
23277
|
+
"isReadonly": false,
|
|
23278
|
+
"isOptional": false,
|
|
23279
|
+
"releaseTag": "Public",
|
|
23280
|
+
"name": "cancelFetchAndSaveFacetsResponse",
|
|
23281
|
+
"propertyTypeTokenRange": {
|
|
23282
|
+
"startIndex": 1,
|
|
23283
|
+
"endIndex": 2
|
|
23284
|
+
}
|
|
23285
|
+
},
|
|
23286
|
+
{
|
|
23287
|
+
"kind": "PropertySignature",
|
|
23288
|
+
"canonicalReference": "@empathyco/x-components!FacetsActions#fetchAndSaveFacetsResponse:member",
|
|
23289
|
+
"docComment": "/**\n * Fetches a new facets response and stores them in the module state.\n */\n",
|
|
23290
|
+
"excerptTokens": [
|
|
23291
|
+
{
|
|
23292
|
+
"kind": "Content",
|
|
23293
|
+
"text": "fetchAndSaveFacetsResponse: "
|
|
23294
|
+
},
|
|
23295
|
+
{
|
|
23296
|
+
"kind": "Content",
|
|
23297
|
+
"text": "(request: "
|
|
23298
|
+
},
|
|
23299
|
+
{
|
|
23300
|
+
"kind": "Reference",
|
|
23301
|
+
"text": "FacetsRequest",
|
|
23302
|
+
"canonicalReference": "@empathyco/x-components!FacetsRequest:interface"
|
|
23303
|
+
},
|
|
23304
|
+
{
|
|
23305
|
+
"kind": "Content",
|
|
23306
|
+
"text": " | null) => void"
|
|
23307
|
+
},
|
|
23308
|
+
{
|
|
23309
|
+
"kind": "Content",
|
|
23310
|
+
"text": ";"
|
|
23311
|
+
}
|
|
23312
|
+
],
|
|
23313
|
+
"isReadonly": false,
|
|
23314
|
+
"isOptional": false,
|
|
23315
|
+
"releaseTag": "Public",
|
|
23316
|
+
"name": "fetchAndSaveFacetsResponse",
|
|
23317
|
+
"propertyTypeTokenRange": {
|
|
23318
|
+
"startIndex": 1,
|
|
23319
|
+
"endIndex": 4
|
|
23320
|
+
}
|
|
23321
|
+
},
|
|
23322
|
+
{
|
|
23323
|
+
"kind": "PropertySignature",
|
|
23324
|
+
"canonicalReference": "@empathyco/x-components!FacetsActions#fetchFacetsResponse:member",
|
|
23325
|
+
"docComment": "/**\n * Fetches the facets response and returns them.\n *\n * @returns The new search response.\n */\n",
|
|
23326
|
+
"excerptTokens": [
|
|
23327
|
+
{
|
|
23328
|
+
"kind": "Content",
|
|
23329
|
+
"text": "fetchFacetsResponse: "
|
|
23330
|
+
},
|
|
23331
|
+
{
|
|
23332
|
+
"kind": "Content",
|
|
23333
|
+
"text": "(request: "
|
|
23334
|
+
},
|
|
23335
|
+
{
|
|
23336
|
+
"kind": "Reference",
|
|
23337
|
+
"text": "FacetsRequest",
|
|
23338
|
+
"canonicalReference": "@empathyco/x-components!FacetsRequest:interface"
|
|
23339
|
+
},
|
|
23340
|
+
{
|
|
23341
|
+
"kind": "Content",
|
|
23342
|
+
"text": ") => "
|
|
23343
|
+
},
|
|
23344
|
+
{
|
|
23345
|
+
"kind": "Reference",
|
|
23346
|
+
"text": "FacetsResponse",
|
|
23347
|
+
"canonicalReference": "@empathyco/x-components!FacetsResponse:interface"
|
|
23348
|
+
},
|
|
23349
|
+
{
|
|
23350
|
+
"kind": "Content",
|
|
23351
|
+
"text": ";"
|
|
23352
|
+
}
|
|
23353
|
+
],
|
|
23354
|
+
"isReadonly": false,
|
|
23355
|
+
"isOptional": false,
|
|
23356
|
+
"releaseTag": "Public",
|
|
23357
|
+
"name": "fetchFacetsResponse",
|
|
23358
|
+
"propertyTypeTokenRange": {
|
|
23359
|
+
"startIndex": 1,
|
|
23360
|
+
"endIndex": 5
|
|
23361
|
+
}
|
|
23362
|
+
},
|
|
23363
|
+
{
|
|
23364
|
+
"kind": "PropertySignature",
|
|
23365
|
+
"canonicalReference": "@empathyco/x-components!FacetsActions#saveOrigin:member",
|
|
23366
|
+
"docComment": "/**\n * Creates a {@link QueryOrigin} and saves it.\n *\n * @param originInit - The object to create the origin with.\n */\n",
|
|
23367
|
+
"excerptTokens": [
|
|
23368
|
+
{
|
|
23369
|
+
"kind": "Content",
|
|
23370
|
+
"text": "saveOrigin: "
|
|
23371
|
+
},
|
|
23372
|
+
{
|
|
23373
|
+
"kind": "Content",
|
|
23374
|
+
"text": "(originInit: "
|
|
23375
|
+
},
|
|
23376
|
+
{
|
|
23377
|
+
"kind": "Reference",
|
|
23378
|
+
"text": "QueryOriginInit",
|
|
23379
|
+
"canonicalReference": "@empathyco/x-components!QueryOriginInit:type"
|
|
23380
|
+
},
|
|
23381
|
+
{
|
|
23382
|
+
"kind": "Content",
|
|
23383
|
+
"text": ") => void"
|
|
23384
|
+
},
|
|
23385
|
+
{
|
|
23386
|
+
"kind": "Content",
|
|
23387
|
+
"text": ";"
|
|
23388
|
+
}
|
|
23389
|
+
],
|
|
23390
|
+
"isReadonly": false,
|
|
23391
|
+
"isOptional": false,
|
|
23392
|
+
"releaseTag": "Public",
|
|
23393
|
+
"name": "saveOrigin",
|
|
23394
|
+
"propertyTypeTokenRange": {
|
|
23395
|
+
"startIndex": 1,
|
|
23396
|
+
"endIndex": 4
|
|
23397
|
+
}
|
|
23398
|
+
}
|
|
23399
|
+
],
|
|
23188
23400
|
"extendsTokenRanges": []
|
|
23189
23401
|
},
|
|
23190
23402
|
{
|
|
@@ -23365,6 +23577,38 @@
|
|
|
23365
23577
|
"endIndex": 7
|
|
23366
23578
|
}
|
|
23367
23579
|
},
|
|
23580
|
+
{
|
|
23581
|
+
"kind": "PropertySignature",
|
|
23582
|
+
"canonicalReference": "@empathyco/x-components!FacetsGetters#request:member",
|
|
23583
|
+
"docComment": "/**\n * The adapter request object for retrieving the facets, or null if there is no valid data to create a request.\n */\n",
|
|
23584
|
+
"excerptTokens": [
|
|
23585
|
+
{
|
|
23586
|
+
"kind": "Content",
|
|
23587
|
+
"text": "request: "
|
|
23588
|
+
},
|
|
23589
|
+
{
|
|
23590
|
+
"kind": "Reference",
|
|
23591
|
+
"text": "FacetsRequest",
|
|
23592
|
+
"canonicalReference": "@empathyco/x-components!FacetsRequest:interface"
|
|
23593
|
+
},
|
|
23594
|
+
{
|
|
23595
|
+
"kind": "Content",
|
|
23596
|
+
"text": " | null"
|
|
23597
|
+
},
|
|
23598
|
+
{
|
|
23599
|
+
"kind": "Content",
|
|
23600
|
+
"text": ";"
|
|
23601
|
+
}
|
|
23602
|
+
],
|
|
23603
|
+
"isReadonly": false,
|
|
23604
|
+
"isOptional": false,
|
|
23605
|
+
"releaseTag": "Public",
|
|
23606
|
+
"name": "request",
|
|
23607
|
+
"propertyTypeTokenRange": {
|
|
23608
|
+
"startIndex": 1,
|
|
23609
|
+
"endIndex": 3
|
|
23610
|
+
}
|
|
23611
|
+
},
|
|
23368
23612
|
{
|
|
23369
23613
|
"kind": "PropertySignature",
|
|
23370
23614
|
"canonicalReference": "@empathyco/x-components!FacetsGetters#selectedFilters:member",
|
|
@@ -23546,6 +23790,15 @@
|
|
|
23546
23790
|
"kind": "Content",
|
|
23547
23791
|
"text": "export interface FacetsMutations extends "
|
|
23548
23792
|
},
|
|
23793
|
+
{
|
|
23794
|
+
"kind": "Reference",
|
|
23795
|
+
"text": "StatusMutations",
|
|
23796
|
+
"canonicalReference": "@empathyco/x-components!StatusMutations:interface"
|
|
23797
|
+
},
|
|
23798
|
+
{
|
|
23799
|
+
"kind": "Content",
|
|
23800
|
+
"text": ", "
|
|
23801
|
+
},
|
|
23549
23802
|
{
|
|
23550
23803
|
"kind": "Reference",
|
|
23551
23804
|
"text": "QueryMutations",
|
|
@@ -23898,6 +24151,78 @@
|
|
|
23898
24151
|
"endIndex": 4
|
|
23899
24152
|
}
|
|
23900
24153
|
},
|
|
24154
|
+
{
|
|
24155
|
+
"kind": "PropertySignature",
|
|
24156
|
+
"canonicalReference": "@empathyco/x-components!FacetsMutations#setOrigin:member",
|
|
24157
|
+
"docComment": "/**\n * Sets the origin of the module.\n *\n * @param origin - The new origin.\n */\n",
|
|
24158
|
+
"excerptTokens": [
|
|
24159
|
+
{
|
|
24160
|
+
"kind": "Content",
|
|
24161
|
+
"text": "setOrigin: "
|
|
24162
|
+
},
|
|
24163
|
+
{
|
|
24164
|
+
"kind": "Content",
|
|
24165
|
+
"text": "(origin: "
|
|
24166
|
+
},
|
|
24167
|
+
{
|
|
24168
|
+
"kind": "Reference",
|
|
24169
|
+
"text": "QueryOrigin",
|
|
24170
|
+
"canonicalReference": "@empathyco/x-components!QueryOrigin:type"
|
|
24171
|
+
},
|
|
24172
|
+
{
|
|
24173
|
+
"kind": "Content",
|
|
24174
|
+
"text": " | undefined | null) => void"
|
|
24175
|
+
},
|
|
24176
|
+
{
|
|
24177
|
+
"kind": "Content",
|
|
24178
|
+
"text": ";"
|
|
24179
|
+
}
|
|
24180
|
+
],
|
|
24181
|
+
"isReadonly": false,
|
|
24182
|
+
"isOptional": false,
|
|
24183
|
+
"releaseTag": "Public",
|
|
24184
|
+
"name": "setOrigin",
|
|
24185
|
+
"propertyTypeTokenRange": {
|
|
24186
|
+
"startIndex": 1,
|
|
24187
|
+
"endIndex": 4
|
|
24188
|
+
}
|
|
24189
|
+
},
|
|
24190
|
+
{
|
|
24191
|
+
"kind": "PropertySignature",
|
|
24192
|
+
"canonicalReference": "@empathyco/x-components!FacetsMutations#setParams:member",
|
|
24193
|
+
"docComment": "/**\n * Sets the extra params of the module.\n *\n * @param params - The new extra params.\n */\n",
|
|
24194
|
+
"excerptTokens": [
|
|
24195
|
+
{
|
|
24196
|
+
"kind": "Content",
|
|
24197
|
+
"text": "setParams: "
|
|
24198
|
+
},
|
|
24199
|
+
{
|
|
24200
|
+
"kind": "Content",
|
|
24201
|
+
"text": "(params: "
|
|
24202
|
+
},
|
|
24203
|
+
{
|
|
24204
|
+
"kind": "Reference",
|
|
24205
|
+
"text": "Dictionary",
|
|
24206
|
+
"canonicalReference": "@empathyco/x-utils!Dictionary:type"
|
|
24207
|
+
},
|
|
24208
|
+
{
|
|
24209
|
+
"kind": "Content",
|
|
24210
|
+
"text": "<unknown>) => void"
|
|
24211
|
+
},
|
|
24212
|
+
{
|
|
24213
|
+
"kind": "Content",
|
|
24214
|
+
"text": ";"
|
|
24215
|
+
}
|
|
24216
|
+
],
|
|
24217
|
+
"isReadonly": false,
|
|
24218
|
+
"isOptional": false,
|
|
24219
|
+
"releaseTag": "Public",
|
|
24220
|
+
"name": "setParams",
|
|
24221
|
+
"propertyTypeTokenRange": {
|
|
24222
|
+
"startIndex": 1,
|
|
24223
|
+
"endIndex": 4
|
|
24224
|
+
}
|
|
24225
|
+
},
|
|
23901
24226
|
{
|
|
23902
24227
|
"kind": "PropertySignature",
|
|
23903
24228
|
"canonicalReference": "@empathyco/x-components!FacetsMutations#setPreselectedFilters:member",
|
|
@@ -23978,7 +24303,11 @@
|
|
|
23978
24303
|
},
|
|
23979
24304
|
{
|
|
23980
24305
|
"startIndex": 3,
|
|
23981
|
-
"endIndex":
|
|
24306
|
+
"endIndex": 4
|
|
24307
|
+
},
|
|
24308
|
+
{
|
|
24309
|
+
"startIndex": 5,
|
|
24310
|
+
"endIndex": 9
|
|
23982
24311
|
}
|
|
23983
24312
|
]
|
|
23984
24313
|
},
|
|
@@ -24552,7 +24881,25 @@
|
|
|
24552
24881
|
"excerptTokens": [
|
|
24553
24882
|
{
|
|
24554
24883
|
"kind": "Content",
|
|
24555
|
-
"text": "export interface FacetsState "
|
|
24884
|
+
"text": "export interface FacetsState extends "
|
|
24885
|
+
},
|
|
24886
|
+
{
|
|
24887
|
+
"kind": "Reference",
|
|
24888
|
+
"text": "StatusState",
|
|
24889
|
+
"canonicalReference": "@empathyco/x-components!StatusState:interface"
|
|
24890
|
+
},
|
|
24891
|
+
{
|
|
24892
|
+
"kind": "Content",
|
|
24893
|
+
"text": ", "
|
|
24894
|
+
},
|
|
24895
|
+
{
|
|
24896
|
+
"kind": "Reference",
|
|
24897
|
+
"text": "QueryState",
|
|
24898
|
+
"canonicalReference": "@empathyco/x-components!QueryState:interface"
|
|
24899
|
+
},
|
|
24900
|
+
{
|
|
24901
|
+
"kind": "Content",
|
|
24902
|
+
"text": " "
|
|
24556
24903
|
}
|
|
24557
24904
|
],
|
|
24558
24905
|
"fileUrlPath": "src/x-modules/facets/store/types.ts",
|
|
@@ -24749,21 +25096,21 @@
|
|
|
24749
25096
|
},
|
|
24750
25097
|
{
|
|
24751
25098
|
"kind": "PropertySignature",
|
|
24752
|
-
"canonicalReference": "@empathyco/x-components!FacetsState#
|
|
24753
|
-
"docComment": "/**\n *
|
|
25099
|
+
"canonicalReference": "@empathyco/x-components!FacetsState#origin:member",
|
|
25100
|
+
"docComment": "/**\n * The origin property of the request.\n */\n",
|
|
24754
25101
|
"excerptTokens": [
|
|
24755
25102
|
{
|
|
24756
25103
|
"kind": "Content",
|
|
24757
|
-
"text": "
|
|
25104
|
+
"text": "origin: "
|
|
24758
25105
|
},
|
|
24759
25106
|
{
|
|
24760
25107
|
"kind": "Reference",
|
|
24761
|
-
"text": "
|
|
24762
|
-
"canonicalReference": "@empathyco/x-components!
|
|
25108
|
+
"text": "QueryOrigin",
|
|
25109
|
+
"canonicalReference": "@empathyco/x-components!QueryOrigin:type"
|
|
24763
25110
|
},
|
|
24764
25111
|
{
|
|
24765
25112
|
"kind": "Content",
|
|
24766
|
-
"text": "
|
|
25113
|
+
"text": " | null"
|
|
24767
25114
|
},
|
|
24768
25115
|
{
|
|
24769
25116
|
"kind": "Content",
|
|
@@ -24773,7 +25120,7 @@
|
|
|
24773
25120
|
"isReadonly": false,
|
|
24774
25121
|
"isOptional": false,
|
|
24775
25122
|
"releaseTag": "Public",
|
|
24776
|
-
"name": "
|
|
25123
|
+
"name": "origin",
|
|
24777
25124
|
"propertyTypeTokenRange": {
|
|
24778
25125
|
"startIndex": 1,
|
|
24779
25126
|
"endIndex": 3
|
|
@@ -24781,16 +25128,21 @@
|
|
|
24781
25128
|
},
|
|
24782
25129
|
{
|
|
24783
25130
|
"kind": "PropertySignature",
|
|
24784
|
-
"canonicalReference": "@empathyco/x-components!FacetsState#
|
|
24785
|
-
"docComment": "/**\n * The
|
|
25131
|
+
"canonicalReference": "@empathyco/x-components!FacetsState#params:member",
|
|
25132
|
+
"docComment": "/**\n * The extra params property of the state.\n */\n",
|
|
24786
25133
|
"excerptTokens": [
|
|
24787
25134
|
{
|
|
24788
25135
|
"kind": "Content",
|
|
24789
|
-
"text": "
|
|
25136
|
+
"text": "params: "
|
|
25137
|
+
},
|
|
25138
|
+
{
|
|
25139
|
+
"kind": "Reference",
|
|
25140
|
+
"text": "Dictionary",
|
|
25141
|
+
"canonicalReference": "@empathyco/x-utils!Dictionary:type"
|
|
24790
25142
|
},
|
|
24791
25143
|
{
|
|
24792
25144
|
"kind": "Content",
|
|
24793
|
-
"text": "
|
|
25145
|
+
"text": "<unknown>"
|
|
24794
25146
|
},
|
|
24795
25147
|
{
|
|
24796
25148
|
"kind": "Content",
|
|
@@ -24800,10 +25152,42 @@
|
|
|
24800
25152
|
"isReadonly": false,
|
|
24801
25153
|
"isOptional": false,
|
|
24802
25154
|
"releaseTag": "Public",
|
|
24803
|
-
"name": "
|
|
25155
|
+
"name": "params",
|
|
24804
25156
|
"propertyTypeTokenRange": {
|
|
24805
25157
|
"startIndex": 1,
|
|
24806
|
-
"endIndex":
|
|
25158
|
+
"endIndex": 3
|
|
25159
|
+
}
|
|
25160
|
+
},
|
|
25161
|
+
{
|
|
25162
|
+
"kind": "PropertySignature",
|
|
25163
|
+
"canonicalReference": "@empathyco/x-components!FacetsState#preselectedFilters:member",
|
|
25164
|
+
"docComment": "/**\n * Record of preselected filters indexed by its id.\n */\n",
|
|
25165
|
+
"excerptTokens": [
|
|
25166
|
+
{
|
|
25167
|
+
"kind": "Content",
|
|
25168
|
+
"text": "preselectedFilters: "
|
|
25169
|
+
},
|
|
25170
|
+
{
|
|
25171
|
+
"kind": "Reference",
|
|
25172
|
+
"text": "RawFilter",
|
|
25173
|
+
"canonicalReference": "@empathyco/x-components!RawFilter:interface"
|
|
25174
|
+
},
|
|
25175
|
+
{
|
|
25176
|
+
"kind": "Content",
|
|
25177
|
+
"text": "[]"
|
|
25178
|
+
},
|
|
25179
|
+
{
|
|
25180
|
+
"kind": "Content",
|
|
25181
|
+
"text": ";"
|
|
25182
|
+
}
|
|
25183
|
+
],
|
|
25184
|
+
"isReadonly": false,
|
|
25185
|
+
"isOptional": false,
|
|
25186
|
+
"releaseTag": "Public",
|
|
25187
|
+
"name": "preselectedFilters",
|
|
25188
|
+
"propertyTypeTokenRange": {
|
|
25189
|
+
"startIndex": 1,
|
|
25190
|
+
"endIndex": 3
|
|
24807
25191
|
}
|
|
24808
25192
|
},
|
|
24809
25193
|
{
|
|
@@ -24857,7 +25241,16 @@
|
|
|
24857
25241
|
}
|
|
24858
25242
|
}
|
|
24859
25243
|
],
|
|
24860
|
-
"extendsTokenRanges": [
|
|
25244
|
+
"extendsTokenRanges": [
|
|
25245
|
+
{
|
|
25246
|
+
"startIndex": 1,
|
|
25247
|
+
"endIndex": 2
|
|
25248
|
+
},
|
|
25249
|
+
{
|
|
25250
|
+
"startIndex": 3,
|
|
25251
|
+
"endIndex": 4
|
|
25252
|
+
}
|
|
25253
|
+
]
|
|
24861
25254
|
},
|
|
24862
25255
|
{
|
|
24863
25256
|
"kind": "Interface",
|
|
@@ -28793,6 +29186,61 @@
|
|
|
28793
29186
|
],
|
|
28794
29187
|
"name": "flatHierarchicalFilters"
|
|
28795
29188
|
},
|
|
29189
|
+
{
|
|
29190
|
+
"kind": "Function",
|
|
29191
|
+
"canonicalReference": "@empathyco/x-components!flattenAllFilters:function(1)",
|
|
29192
|
+
"docComment": "/**\n * Flattens all filters from an array of facets, including hierarchical filters.\n *\n * @param facets - The list of facets to extract filters from.\n *\n * @returns A flat array of all filters from all facets.\n *\n * @public\n */\n",
|
|
29193
|
+
"excerptTokens": [
|
|
29194
|
+
{
|
|
29195
|
+
"kind": "Content",
|
|
29196
|
+
"text": "export declare function flattenAllFilters(facets: "
|
|
29197
|
+
},
|
|
29198
|
+
{
|
|
29199
|
+
"kind": "Reference",
|
|
29200
|
+
"text": "Facet",
|
|
29201
|
+
"canonicalReference": "@empathyco/x-components!Facet:interface"
|
|
29202
|
+
},
|
|
29203
|
+
{
|
|
29204
|
+
"kind": "Content",
|
|
29205
|
+
"text": "[]"
|
|
29206
|
+
},
|
|
29207
|
+
{
|
|
29208
|
+
"kind": "Content",
|
|
29209
|
+
"text": "): "
|
|
29210
|
+
},
|
|
29211
|
+
{
|
|
29212
|
+
"kind": "Reference",
|
|
29213
|
+
"text": "Filter",
|
|
29214
|
+
"canonicalReference": "@empathyco/x-components!Filter:interface"
|
|
29215
|
+
},
|
|
29216
|
+
{
|
|
29217
|
+
"kind": "Content",
|
|
29218
|
+
"text": "[]"
|
|
29219
|
+
},
|
|
29220
|
+
{
|
|
29221
|
+
"kind": "Content",
|
|
29222
|
+
"text": ";"
|
|
29223
|
+
}
|
|
29224
|
+
],
|
|
29225
|
+
"fileUrlPath": "src/x-modules/facets/utils.ts",
|
|
29226
|
+
"returnTypeTokenRange": {
|
|
29227
|
+
"startIndex": 4,
|
|
29228
|
+
"endIndex": 6
|
|
29229
|
+
},
|
|
29230
|
+
"releaseTag": "Public",
|
|
29231
|
+
"overloadIndex": 1,
|
|
29232
|
+
"parameters": [
|
|
29233
|
+
{
|
|
29234
|
+
"parameterName": "facets",
|
|
29235
|
+
"parameterTypeTokenRange": {
|
|
29236
|
+
"startIndex": 1,
|
|
29237
|
+
"endIndex": 3
|
|
29238
|
+
},
|
|
29239
|
+
"isOptional": false
|
|
29240
|
+
}
|
|
29241
|
+
],
|
|
29242
|
+
"name": "flattenAllFilters"
|
|
29243
|
+
},
|
|
28796
29244
|
{
|
|
28797
29245
|
"kind": "Variable",
|
|
28798
29246
|
"canonicalReference": "@empathyco/x-components!FOCUSABLE_SELECTORS:var",
|
|
@@ -471,6 +471,11 @@ export type AnyXStoreModule = XStoreModule<any, any, any, any>;
|
|
|
471
471
|
// @public
|
|
472
472
|
export type AnyXStoreModuleOption = XStoreModuleOptions<AnyXStoreModule>;
|
|
473
473
|
|
|
474
|
+
// Warning: (ae-forgotten-export) The symbol "HierarchicalFilter_2" needs to be exported by the entry point index.d.ts
|
|
475
|
+
//
|
|
476
|
+
// @public
|
|
477
|
+
export function applyHierarchicalSelection(filters: HierarchicalFilter_2[], selectedIds: Set<string | number>): void;
|
|
478
|
+
|
|
474
479
|
// @public
|
|
475
480
|
export function areFiltersDifferent(someFilters: Filter[], anotherFilters: Filter[]): boolean;
|
|
476
481
|
|
|
@@ -2811,6 +2816,12 @@ export const facets: FacetsXStoreModule['getters']['facets'];
|
|
|
2811
2816
|
|
|
2812
2817
|
// @public
|
|
2813
2818
|
export interface FacetsActions {
|
|
2819
|
+
cancelFetchAndSaveFacetsResponse: () => void;
|
|
2820
|
+
// Warning: (ae-forgotten-export) The symbol "FacetsRequest" needs to be exported by the entry point index.d.ts
|
|
2821
|
+
fetchAndSaveFacetsResponse: (request: FacetsRequest | null) => void;
|
|
2822
|
+
// Warning: (ae-forgotten-export) The symbol "FacetsResponse" needs to be exported by the entry point index.d.ts
|
|
2823
|
+
fetchFacetsResponse: (request: FacetsRequest) => FacetsResponse;
|
|
2824
|
+
saveOrigin: (originInit: QueryOriginInit) => void;
|
|
2814
2825
|
}
|
|
2815
2826
|
|
|
2816
2827
|
// @public
|
|
@@ -2846,6 +2857,7 @@ export const facetsEmitters: {
|
|
|
2846
2857
|
// @public
|
|
2847
2858
|
export interface FacetsGetters {
|
|
2848
2859
|
facets: Record<Facet['id'], Facet>;
|
|
2860
|
+
request: FacetsRequest | null;
|
|
2849
2861
|
selectedFilters: Filter[];
|
|
2850
2862
|
selectedFiltersByFacet: FiltersByFacet;
|
|
2851
2863
|
selectedFiltersForRequest: Filter[];
|
|
@@ -2858,7 +2870,7 @@ export interface FacetsGroup {
|
|
|
2858
2870
|
}
|
|
2859
2871
|
|
|
2860
2872
|
// @public
|
|
2861
|
-
export interface FacetsMutations extends QueryMutations, ConfigMutations<FacetsState> {
|
|
2873
|
+
export interface FacetsMutations extends StatusMutations, QueryMutations, ConfigMutations<FacetsState> {
|
|
2862
2874
|
clearStickyFilters: () => void;
|
|
2863
2875
|
mutateFilter: (payload: MutateFilterPayload) => void;
|
|
2864
2876
|
removeFacet: (facet: Facet) => void;
|
|
@@ -2868,6 +2880,8 @@ export interface FacetsMutations extends QueryMutations, ConfigMutations<FacetsS
|
|
|
2868
2880
|
setFacet: (facet: Facet) => void;
|
|
2869
2881
|
setFacetGroup: (facetGroupEntry: FacetGroupEntry) => void;
|
|
2870
2882
|
setFilters: (filters: Filter[]) => void;
|
|
2883
|
+
setOrigin: (origin: QueryOrigin | undefined | null) => void;
|
|
2884
|
+
setParams: (params: Dictionary<unknown>) => void;
|
|
2871
2885
|
setPreselectedFilters: (filters: RawFilter[]) => void;
|
|
2872
2886
|
setStickyFilter: (filter: RawFilter) => void;
|
|
2873
2887
|
}
|
|
@@ -2913,13 +2927,14 @@ export interface FacetsService {
|
|
|
2913
2927
|
}
|
|
2914
2928
|
|
|
2915
2929
|
// @public
|
|
2916
|
-
export interface FacetsState {
|
|
2930
|
+
export interface FacetsState extends StatusState, QueryState {
|
|
2917
2931
|
config: FacetsConfig;
|
|
2918
2932
|
facets: Record<Facet['id'], Omit<Facet, 'filters'>>;
|
|
2919
2933
|
filters: Record<Filter['id'], Filter>;
|
|
2920
2934
|
groups: Record<Facet['id'], GroupId>;
|
|
2935
|
+
origin: QueryOrigin | null;
|
|
2936
|
+
params: Dictionary<unknown>;
|
|
2921
2937
|
preselectedFilters: RawFilter[];
|
|
2922
|
-
query: string;
|
|
2923
2938
|
stickyFilters: Record<Filter['id'], Filter>;
|
|
2924
2939
|
}
|
|
2925
2940
|
|
|
@@ -2988,7 +3003,6 @@ export interface FacetsXEvents {
|
|
|
2988
3003
|
SelectedFiltersForRequestChanged: Filter[];
|
|
2989
3004
|
UserChangedSelectedFilters: Filter[];
|
|
2990
3005
|
UserClickedAFilter: Filter;
|
|
2991
|
-
// Warning: (ae-forgotten-export) The symbol "HierarchicalFilter_2" needs to be exported by the entry point index.d.ts
|
|
2992
3006
|
UserClickedAHierarchicalFilter: HierarchicalFilter_2;
|
|
2993
3007
|
UserClickedAllFilter: [Facet['id']];
|
|
2994
3008
|
// Warning: (ae-forgotten-export) The symbol "NumberRangeFilter_2" needs to be exported by the entry point index.d.ts
|
|
@@ -3329,6 +3343,9 @@ devMode: boolean;
|
|
|
3329
3343
|
// @public
|
|
3330
3344
|
export function flatHierarchicalFilters(hierarchicalFilters: HierarchicalFilter_2[]): HierarchicalFilter_2[];
|
|
3331
3345
|
|
|
3346
|
+
// @public
|
|
3347
|
+
export function flattenAllFilters(facets: Facet[]): Filter[];
|
|
3348
|
+
|
|
3332
3349
|
// @public
|
|
3333
3350
|
export const FOCUSABLE_SELECTORS = "a[href], button:not([disabled]), details, input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
3334
3351
|
|