@empathyco/x-components 3.0.0-alpha.147 → 3.0.0-alpha.148
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 +13 -0
- package/core/index.js +1 -1
- package/core/index.js.map +1 -1
- package/design-system/full-theme.css +59 -58
- package/docs/API-reference/api/x-components.md +1 -0
- package/docs/API-reference/api/x-components.nextquerieslist.injectedquery.md +13 -0
- package/docs/API-reference/api/x-components.nextquerieslist.md +1 -0
- package/docs/API-reference/api/x-components.nextquerypreview.md +29 -0
- package/docs/API-reference/api/x-components.nextquerypreview.mounted.md +17 -0
- package/docs/API-reference/api/x-components.nextquerypreview.previewresults.md +13 -0
- package/docs/API-reference/api/x-components.nextquerypreview.suggestion.md +13 -0
- package/docs/API-reference/api/x-components.nextquerypreview.suggestionresults.md +13 -0
- package/docs/API-reference/api/x-components.resultslist.md +9 -0
- package/docs/API-reference/api/x-components.resultslist.providedquery.md +13 -0
- package/docs/API-reference/api/x-components.resultslist.searchquery.md +13 -0
- package/docs/API-reference/api/x-components.resultslist.searchstatus.md +13 -0
- package/docs/API-reference/api/x-components.resultslist.updatequery.md +24 -0
- package/docs/API-reference/components/next-queries/x-components.next-query-preview.md +155 -0
- package/js/components/base-grid.vue.js +2 -2
- package/js/components/base-grid.vue.js.map +1 -1
- package/js/components/decorators/injection.consts.js +8 -2
- package/js/components/decorators/injection.consts.js.map +1 -1
- package/js/index.js +3 -2
- package/js/index.js.map +1 -1
- package/js/x-modules/next-queries/components/next-queries-list.vue.js.map +1 -1
- package/js/x-modules/next-queries/components/next-queries-list.vue_rollup-plugin-vue_script.vue.js +19 -0
- package/js/x-modules/next-queries/components/next-queries-list.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/next-queries/components/next-query-preview.vue.js +94 -0
- package/js/x-modules/next-queries/components/next-query-preview.vue.js.map +1 -0
- package/js/x-modules/next-queries/components/next-query-preview.vue_rollup-plugin-vue_script.vue.js +48 -0
- package/js/x-modules/next-queries/components/next-query-preview.vue_rollup-plugin-vue_script.vue.js.map +1 -0
- package/js/x-modules/next-queries/store/actions/fetch-and-save-next-query-preview.action.js.map +1 -1
- package/js/x-modules/search/components/results-list.vue.js.map +1 -1
- package/js/x-modules/search/components/results-list.vue_rollup-plugin-vue_script.vue.js +33 -2
- package/js/x-modules/search/components/results-list.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/next-queries/index.js +2 -1
- package/package.json +2 -2
- package/report/x-components.api.json +310 -0
- package/report/x-components.api.md +18 -0
- package/types/components/decorators/injection.consts.d.ts +6 -0
- package/types/components/decorators/injection.consts.d.ts.map +1 -1
- package/types/x-modules/next-queries/components/index.d.ts +2 -1
- package/types/x-modules/next-queries/components/index.d.ts.map +1 -1
- package/types/x-modules/next-queries/components/next-queries-list.vue.d.ts +11 -0
- package/types/x-modules/next-queries/components/next-queries-list.vue.d.ts.map +1 -1
- package/types/x-modules/next-queries/components/next-query-preview.vue.d.ts +35 -0
- package/types/x-modules/next-queries/components/next-query-preview.vue.d.ts.map +1 -0
- package/types/x-modules/search/components/results-list.vue.d.ts +21 -0
- package/types/x-modules/search/components/results-list.vue.d.ts.map +1 -1
|
@@ -26697,6 +26697,33 @@
|
|
|
26697
26697
|
},
|
|
26698
26698
|
"isStatic": false
|
|
26699
26699
|
},
|
|
26700
|
+
{
|
|
26701
|
+
"kind": "Property",
|
|
26702
|
+
"canonicalReference": "@empathyco/x-components!NextQueriesList#injectedQuery:member",
|
|
26703
|
+
"docComment": "/**\n * Injected query, updated when the related request(s) have succeeded.\n */\n",
|
|
26704
|
+
"excerptTokens": [
|
|
26705
|
+
{
|
|
26706
|
+
"kind": "Content",
|
|
26707
|
+
"text": "injectedQuery: "
|
|
26708
|
+
},
|
|
26709
|
+
{
|
|
26710
|
+
"kind": "Content",
|
|
26711
|
+
"text": "string | undefined"
|
|
26712
|
+
},
|
|
26713
|
+
{
|
|
26714
|
+
"kind": "Content",
|
|
26715
|
+
"text": ";"
|
|
26716
|
+
}
|
|
26717
|
+
],
|
|
26718
|
+
"isOptional": false,
|
|
26719
|
+
"releaseTag": "Public",
|
|
26720
|
+
"name": "injectedQuery",
|
|
26721
|
+
"propertyTypeTokenRange": {
|
|
26722
|
+
"startIndex": 1,
|
|
26723
|
+
"endIndex": 2
|
|
26724
|
+
},
|
|
26725
|
+
"isStatic": false
|
|
26726
|
+
},
|
|
26700
26727
|
{
|
|
26701
26728
|
"kind": "Property",
|
|
26702
26729
|
"canonicalReference": "@empathyco/x-components!NextQueriesList#maxGroups:member",
|
|
@@ -27774,6 +27801,161 @@
|
|
|
27774
27801
|
},
|
|
27775
27802
|
"implementsTokenRanges": []
|
|
27776
27803
|
},
|
|
27804
|
+
{
|
|
27805
|
+
"kind": "Class",
|
|
27806
|
+
"canonicalReference": "@empathyco/x-components!NextQueryPreview:class",
|
|
27807
|
+
"docComment": "/**\n * Retrieves a preview of the results of a next query and exposes them in the default slot, along with the next query and the totalResults of the search request. By default, it renders the names of the results.\n *\n * @public\n */\n",
|
|
27808
|
+
"excerptTokens": [
|
|
27809
|
+
{
|
|
27810
|
+
"kind": "Content",
|
|
27811
|
+
"text": "export default class NextQueryPreview extends "
|
|
27812
|
+
},
|
|
27813
|
+
{
|
|
27814
|
+
"kind": "Reference",
|
|
27815
|
+
"text": "Vue",
|
|
27816
|
+
"canonicalReference": "vue!Vue:interface"
|
|
27817
|
+
},
|
|
27818
|
+
{
|
|
27819
|
+
"kind": "Content",
|
|
27820
|
+
"text": " "
|
|
27821
|
+
}
|
|
27822
|
+
],
|
|
27823
|
+
"releaseTag": "Public",
|
|
27824
|
+
"name": "NextQueryPreview",
|
|
27825
|
+
"members": [
|
|
27826
|
+
{
|
|
27827
|
+
"kind": "Method",
|
|
27828
|
+
"canonicalReference": "@empathyco/x-components!NextQueryPreview#mounted:member(1)",
|
|
27829
|
+
"docComment": "/**\n * The component emits the NextQueryPreviewMounted event to retrieve the results preview of the next query.\n */\n",
|
|
27830
|
+
"excerptTokens": [
|
|
27831
|
+
{
|
|
27832
|
+
"kind": "Content",
|
|
27833
|
+
"text": "mounted(): "
|
|
27834
|
+
},
|
|
27835
|
+
{
|
|
27836
|
+
"kind": "Content",
|
|
27837
|
+
"text": "void"
|
|
27838
|
+
},
|
|
27839
|
+
{
|
|
27840
|
+
"kind": "Content",
|
|
27841
|
+
"text": ";"
|
|
27842
|
+
}
|
|
27843
|
+
],
|
|
27844
|
+
"isOptional": false,
|
|
27845
|
+
"isStatic": false,
|
|
27846
|
+
"returnTypeTokenRange": {
|
|
27847
|
+
"startIndex": 1,
|
|
27848
|
+
"endIndex": 2
|
|
27849
|
+
},
|
|
27850
|
+
"releaseTag": "Public",
|
|
27851
|
+
"overloadIndex": 1,
|
|
27852
|
+
"parameters": [],
|
|
27853
|
+
"name": "mounted"
|
|
27854
|
+
},
|
|
27855
|
+
{
|
|
27856
|
+
"kind": "Property",
|
|
27857
|
+
"canonicalReference": "@empathyco/x-components!NextQueryPreview#previewResults:member",
|
|
27858
|
+
"docComment": "/**\n * The results preview of the next queries mounted. It is a dictionary, indexed by the next query query.\n */\n",
|
|
27859
|
+
"excerptTokens": [
|
|
27860
|
+
{
|
|
27861
|
+
"kind": "Content",
|
|
27862
|
+
"text": "previewResults: "
|
|
27863
|
+
},
|
|
27864
|
+
{
|
|
27865
|
+
"kind": "Reference",
|
|
27866
|
+
"text": "Dictionary",
|
|
27867
|
+
"canonicalReference": "@empathyco/x-utils!Dictionary:type"
|
|
27868
|
+
},
|
|
27869
|
+
{
|
|
27870
|
+
"kind": "Content",
|
|
27871
|
+
"text": "<"
|
|
27872
|
+
},
|
|
27873
|
+
{
|
|
27874
|
+
"kind": "Reference",
|
|
27875
|
+
"text": "PreviewResults",
|
|
27876
|
+
"canonicalReference": "@empathyco/x-components!PreviewResults:interface"
|
|
27877
|
+
},
|
|
27878
|
+
{
|
|
27879
|
+
"kind": "Content",
|
|
27880
|
+
"text": ">"
|
|
27881
|
+
},
|
|
27882
|
+
{
|
|
27883
|
+
"kind": "Content",
|
|
27884
|
+
"text": ";"
|
|
27885
|
+
}
|
|
27886
|
+
],
|
|
27887
|
+
"isOptional": false,
|
|
27888
|
+
"releaseTag": "Public",
|
|
27889
|
+
"name": "previewResults",
|
|
27890
|
+
"propertyTypeTokenRange": {
|
|
27891
|
+
"startIndex": 1,
|
|
27892
|
+
"endIndex": 5
|
|
27893
|
+
},
|
|
27894
|
+
"isStatic": false
|
|
27895
|
+
},
|
|
27896
|
+
{
|
|
27897
|
+
"kind": "Property",
|
|
27898
|
+
"canonicalReference": "@empathyco/x-components!NextQueryPreview#suggestion:member",
|
|
27899
|
+
"docComment": "/**\n * The next query to retrieve the results preview.\n *\n * @public\n */\n",
|
|
27900
|
+
"excerptTokens": [
|
|
27901
|
+
{
|
|
27902
|
+
"kind": "Content",
|
|
27903
|
+
"text": "protected suggestion: "
|
|
27904
|
+
},
|
|
27905
|
+
{
|
|
27906
|
+
"kind": "Reference",
|
|
27907
|
+
"text": "NextQuery",
|
|
27908
|
+
"canonicalReference": "@empathyco/x-components!NextQuery:interface"
|
|
27909
|
+
},
|
|
27910
|
+
{
|
|
27911
|
+
"kind": "Content",
|
|
27912
|
+
"text": ";"
|
|
27913
|
+
}
|
|
27914
|
+
],
|
|
27915
|
+
"isOptional": false,
|
|
27916
|
+
"releaseTag": "Public",
|
|
27917
|
+
"name": "suggestion",
|
|
27918
|
+
"propertyTypeTokenRange": {
|
|
27919
|
+
"startIndex": 1,
|
|
27920
|
+
"endIndex": 2
|
|
27921
|
+
},
|
|
27922
|
+
"isStatic": false
|
|
27923
|
+
},
|
|
27924
|
+
{
|
|
27925
|
+
"kind": "Property",
|
|
27926
|
+
"canonicalReference": "@empathyco/x-components!NextQueryPreview#suggestionResults:member",
|
|
27927
|
+
"docComment": "/**\n * Gets from the state the results preview of the next query.\n *\n * @returns The results preview of the actual next query.\n */\n",
|
|
27928
|
+
"excerptTokens": [
|
|
27929
|
+
{
|
|
27930
|
+
"kind": "Content",
|
|
27931
|
+
"text": "get suggestionResults(): "
|
|
27932
|
+
},
|
|
27933
|
+
{
|
|
27934
|
+
"kind": "Reference",
|
|
27935
|
+
"text": "PreviewResults",
|
|
27936
|
+
"canonicalReference": "@empathyco/x-components!PreviewResults:interface"
|
|
27937
|
+
},
|
|
27938
|
+
{
|
|
27939
|
+
"kind": "Content",
|
|
27940
|
+
"text": ";"
|
|
27941
|
+
}
|
|
27942
|
+
],
|
|
27943
|
+
"isOptional": false,
|
|
27944
|
+
"releaseTag": "Public",
|
|
27945
|
+
"name": "suggestionResults",
|
|
27946
|
+
"propertyTypeTokenRange": {
|
|
27947
|
+
"startIndex": 1,
|
|
27948
|
+
"endIndex": 2
|
|
27949
|
+
},
|
|
27950
|
+
"isStatic": false
|
|
27951
|
+
}
|
|
27952
|
+
],
|
|
27953
|
+
"extendsTokenRange": {
|
|
27954
|
+
"startIndex": 1,
|
|
27955
|
+
"endIndex": 3
|
|
27956
|
+
},
|
|
27957
|
+
"implementsTokenRanges": []
|
|
27958
|
+
},
|
|
27777
27959
|
{
|
|
27778
27960
|
"kind": "TypeAlias",
|
|
27779
27961
|
"canonicalReference": "@empathyco/x-components!NiladicFunction:type",
|
|
@@ -35192,6 +35374,134 @@
|
|
|
35192
35374
|
"endIndex": 3
|
|
35193
35375
|
},
|
|
35194
35376
|
"isStatic": false
|
|
35377
|
+
},
|
|
35378
|
+
{
|
|
35379
|
+
"kind": "Property",
|
|
35380
|
+
"canonicalReference": "@empathyco/x-components!ResultsList#providedQuery:member",
|
|
35381
|
+
"docComment": "/**\n * It provides the search query. This query is updated only when the search request has succeeded.\n */\n",
|
|
35382
|
+
"excerptTokens": [
|
|
35383
|
+
{
|
|
35384
|
+
"kind": "Content",
|
|
35385
|
+
"text": "providedQuery: "
|
|
35386
|
+
},
|
|
35387
|
+
{
|
|
35388
|
+
"kind": "Content",
|
|
35389
|
+
"text": "string"
|
|
35390
|
+
},
|
|
35391
|
+
{
|
|
35392
|
+
"kind": "Content",
|
|
35393
|
+
"text": ";"
|
|
35394
|
+
}
|
|
35395
|
+
],
|
|
35396
|
+
"isOptional": false,
|
|
35397
|
+
"releaseTag": "Public",
|
|
35398
|
+
"name": "providedQuery",
|
|
35399
|
+
"propertyTypeTokenRange": {
|
|
35400
|
+
"startIndex": 1,
|
|
35401
|
+
"endIndex": 2
|
|
35402
|
+
},
|
|
35403
|
+
"isStatic": false
|
|
35404
|
+
},
|
|
35405
|
+
{
|
|
35406
|
+
"kind": "Property",
|
|
35407
|
+
"canonicalReference": "@empathyco/x-components!ResultsList#searchQuery:member",
|
|
35408
|
+
"docComment": "/**\n * The query of the search request, taken from the state.\n */\n",
|
|
35409
|
+
"excerptTokens": [
|
|
35410
|
+
{
|
|
35411
|
+
"kind": "Content",
|
|
35412
|
+
"text": "searchQuery: "
|
|
35413
|
+
},
|
|
35414
|
+
{
|
|
35415
|
+
"kind": "Content",
|
|
35416
|
+
"text": "string"
|
|
35417
|
+
},
|
|
35418
|
+
{
|
|
35419
|
+
"kind": "Content",
|
|
35420
|
+
"text": ";"
|
|
35421
|
+
}
|
|
35422
|
+
],
|
|
35423
|
+
"isOptional": false,
|
|
35424
|
+
"releaseTag": "Public",
|
|
35425
|
+
"name": "searchQuery",
|
|
35426
|
+
"propertyTypeTokenRange": {
|
|
35427
|
+
"startIndex": 1,
|
|
35428
|
+
"endIndex": 2
|
|
35429
|
+
},
|
|
35430
|
+
"isStatic": false
|
|
35431
|
+
},
|
|
35432
|
+
{
|
|
35433
|
+
"kind": "Property",
|
|
35434
|
+
"canonicalReference": "@empathyco/x-components!ResultsList#searchStatus:member",
|
|
35435
|
+
"docComment": "/**\n * The status of the search request, taken from the state.\n */\n",
|
|
35436
|
+
"excerptTokens": [
|
|
35437
|
+
{
|
|
35438
|
+
"kind": "Content",
|
|
35439
|
+
"text": "searchStatus: "
|
|
35440
|
+
},
|
|
35441
|
+
{
|
|
35442
|
+
"kind": "Reference",
|
|
35443
|
+
"text": "RequestStatus",
|
|
35444
|
+
"canonicalReference": "@empathyco/x-components!RequestStatus:type"
|
|
35445
|
+
},
|
|
35446
|
+
{
|
|
35447
|
+
"kind": "Content",
|
|
35448
|
+
"text": ";"
|
|
35449
|
+
}
|
|
35450
|
+
],
|
|
35451
|
+
"isOptional": false,
|
|
35452
|
+
"releaseTag": "Public",
|
|
35453
|
+
"name": "searchStatus",
|
|
35454
|
+
"propertyTypeTokenRange": {
|
|
35455
|
+
"startIndex": 1,
|
|
35456
|
+
"endIndex": 2
|
|
35457
|
+
},
|
|
35458
|
+
"isStatic": false
|
|
35459
|
+
},
|
|
35460
|
+
{
|
|
35461
|
+
"kind": "Method",
|
|
35462
|
+
"canonicalReference": "@empathyco/x-components!ResultsList#updateQuery:member(1)",
|
|
35463
|
+
"docComment": "/**\n * Updates the query to be provided to the child components when the search request has succeeded.\n *\n * @param status - The status of the search request.\n */\n",
|
|
35464
|
+
"excerptTokens": [
|
|
35465
|
+
{
|
|
35466
|
+
"kind": "Content",
|
|
35467
|
+
"text": "updateQuery(status: "
|
|
35468
|
+
},
|
|
35469
|
+
{
|
|
35470
|
+
"kind": "Reference",
|
|
35471
|
+
"text": "RequestStatus",
|
|
35472
|
+
"canonicalReference": "@empathyco/x-components!RequestStatus:type"
|
|
35473
|
+
},
|
|
35474
|
+
{
|
|
35475
|
+
"kind": "Content",
|
|
35476
|
+
"text": "): "
|
|
35477
|
+
},
|
|
35478
|
+
{
|
|
35479
|
+
"kind": "Content",
|
|
35480
|
+
"text": "void"
|
|
35481
|
+
},
|
|
35482
|
+
{
|
|
35483
|
+
"kind": "Content",
|
|
35484
|
+
"text": ";"
|
|
35485
|
+
}
|
|
35486
|
+
],
|
|
35487
|
+
"isOptional": false,
|
|
35488
|
+
"isStatic": false,
|
|
35489
|
+
"returnTypeTokenRange": {
|
|
35490
|
+
"startIndex": 3,
|
|
35491
|
+
"endIndex": 4
|
|
35492
|
+
},
|
|
35493
|
+
"releaseTag": "Public",
|
|
35494
|
+
"overloadIndex": 1,
|
|
35495
|
+
"parameters": [
|
|
35496
|
+
{
|
|
35497
|
+
"parameterName": "status",
|
|
35498
|
+
"parameterTypeTokenRange": {
|
|
35499
|
+
"startIndex": 1,
|
|
35500
|
+
"endIndex": 2
|
|
35501
|
+
}
|
|
35502
|
+
}
|
|
35503
|
+
],
|
|
35504
|
+
"name": "updateQuery"
|
|
35195
35505
|
}
|
|
35196
35506
|
],
|
|
35197
35507
|
"extendsTokenRange": {
|
|
@@ -2506,12 +2506,15 @@ export interface NextQueriesGetters {
|
|
|
2506
2506
|
export class NextQueriesList extends NextQueriesList_base {
|
|
2507
2507
|
protected animation?: Vue_2 | string;
|
|
2508
2508
|
frequency: number;
|
|
2509
|
+
injectedQuery: string | undefined;
|
|
2509
2510
|
// @internal
|
|
2510
2511
|
get items(): ListItem[];
|
|
2511
2512
|
maxGroups: number;
|
|
2512
2513
|
maxNextQueriesPerGroup: number;
|
|
2513
2514
|
// @internal
|
|
2514
2515
|
nextQueries: NextQuery_2[];
|
|
2516
|
+
// @internal
|
|
2517
|
+
protected get nextQueriesAreOutdated(): boolean;
|
|
2515
2518
|
// Warning: (ae-forgotten-export) The symbol "NextQueriesGroup" needs to be exported by the entry point index.d.ts
|
|
2516
2519
|
//
|
|
2517
2520
|
// @internal
|
|
@@ -2599,6 +2602,14 @@ export class NextQuery extends Vue_2 {
|
|
|
2599
2602
|
protected suggestion: NextQuery_2;
|
|
2600
2603
|
}
|
|
2601
2604
|
|
|
2605
|
+
// @public
|
|
2606
|
+
export class NextQueryPreview extends Vue_2 {
|
|
2607
|
+
mounted(): void;
|
|
2608
|
+
previewResults: Dictionary<PreviewResults>;
|
|
2609
|
+
protected suggestion: NextQuery_2;
|
|
2610
|
+
get suggestionResults(): PreviewResults;
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2602
2613
|
// @public
|
|
2603
2614
|
export type NiladicFunction = () => any;
|
|
2604
2615
|
|
|
@@ -2848,6 +2859,9 @@ export class PromotedsList extends ItemsListInjectionMixin {
|
|
|
2848
2859
|
// @public
|
|
2849
2860
|
export type PropsWithType<SomeObject, TargetItem> = keyof SomeObject & keyof SubObject<SomeObject, TargetItem>;
|
|
2850
2861
|
|
|
2862
|
+
// @internal
|
|
2863
|
+
export const QUERY_KEY: XInjectKey<string | undefined>;
|
|
2864
|
+
|
|
2851
2865
|
// @public
|
|
2852
2866
|
export type QueryFeature = 'search_box' | 'url' | 'query_suggestion' | 'next_query' | 'popular_search' | 'history_query' | 'partial_result' | 'related_tag' | 'spellcheck';
|
|
2853
2867
|
|
|
@@ -3331,6 +3345,10 @@ export class ResultsList extends Vue_2 implements InfiniteScroll {
|
|
|
3331
3345
|
items: Result[];
|
|
3332
3346
|
// @internal
|
|
3333
3347
|
onInfiniteScrollEnd(): void;
|
|
3348
|
+
providedQuery: string;
|
|
3349
|
+
searchQuery: string;
|
|
3350
|
+
searchStatus: RequestStatus;
|
|
3351
|
+
updateQuery(status: RequestStatus): void;
|
|
3334
3352
|
}
|
|
3335
3353
|
|
|
3336
3354
|
// @public
|
|
@@ -6,4 +6,10 @@ import { XInjectKey } from './injection.decorators';
|
|
|
6
6
|
* @internal
|
|
7
7
|
*/
|
|
8
8
|
export declare const LIST_ITEMS_KEY: XInjectKey<ListItem[] | undefined>;
|
|
9
|
+
/**
|
|
10
|
+
* It's used to identify the provided and injected `query`.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare const QUERY_KEY: XInjectKey<string | undefined>;
|
|
9
15
|
//# sourceMappingURL=injection.consts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"injection.consts.d.ts","sourceRoot":"","sources":["../../../../src/components/decorators/injection.consts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC,QAAQ,EAAE,GAAG,SAAS,CAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"injection.consts.d.ts","sourceRoot":"","sources":["../../../../src/components/decorators/injection.consts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC,QAAQ,EAAE,GAAG,SAAS,CAAe,CAAC;AAE9E;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,MAAM,GAAG,SAAS,CAAW,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as NextQueries } from './next-queries.vue';
|
|
2
|
-
export { default as NextQuery } from './next-query.vue';
|
|
3
2
|
export { default as NextQueriesList } from './next-queries-list.vue';
|
|
3
|
+
export { default as NextQuery } from './next-query.vue';
|
|
4
|
+
export { default as NextQueryPreview } from './next-query-preview.vue';
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/next-queries/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/next-queries/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -47,6 +47,10 @@ export default class NextQueriesList extends NextQueriesList_base {
|
|
|
47
47
|
* @internal
|
|
48
48
|
*/
|
|
49
49
|
nextQueries: NextQuery[];
|
|
50
|
+
/**
|
|
51
|
+
* Injected query, updated when the related request(s) have succeeded.
|
|
52
|
+
*/
|
|
53
|
+
injectedQuery: string | undefined;
|
|
50
54
|
/**
|
|
51
55
|
* The grouped next queries based on the given config.
|
|
52
56
|
*
|
|
@@ -61,6 +65,13 @@ export default class NextQueriesList extends NextQueriesList_base {
|
|
|
61
65
|
* @internal
|
|
62
66
|
*/
|
|
63
67
|
get items(): ListItem[];
|
|
68
|
+
/**
|
|
69
|
+
* Checks if the next queries are outdated taking into account the injected query.
|
|
70
|
+
*
|
|
71
|
+
* @returns True if the next queries are outdated, false if not.
|
|
72
|
+
* @internal
|
|
73
|
+
*/
|
|
74
|
+
protected get nextQueriesAreOutdated(): boolean;
|
|
64
75
|
}
|
|
65
76
|
export {};
|
|
66
77
|
//# sourceMappingURL=next-queries-list.vue?rollup-plugin-vue=script.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next-queries-list.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/next-queries/components/next-queries-list.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAmBA,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAK/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AAIzF,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;;
|
|
1
|
+
{"version":3,"file":"next-queries-list.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/next-queries/components/next-queries-list.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAmBA,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAK/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AAIzF,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;;AAK5C;;;;;GAKG;AASH,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,oBAA+B;IAC1E;;;;OAIG;IAEH,SAAS,CAAC,SAAS,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC;IAEnC;;;;OAIG;IAEI,MAAM,EAAG,MAAM,CAAC;IAEvB;;;;OAIG;IAEI,SAAS,EAAG,MAAM,CAAC;IAE1B;;;;OAIG;IAEI,sBAAsB,EAAG,MAAM,CAAC;IAEvC;;;;OAIG;IAEI,SAAS,EAAG,MAAM,CAAC;IAE1B;;;;OAIG;IAEI,WAAW,EAAG,SAAS,EAAE,CAAC;IAEjC;;OAEG;IAEI,aAAa,EAAG,MAAM,GAAG,SAAS,CAAC;IAE1C;;;;;OAKG;IACH,SAAS,KAAK,iBAAiB,IAAI,gBAAgB,EAAE,CAYpD;IAED;;;;;OAKG;IACH,IAAoB,KAAK,IAAI,QAAQ,EAAE,CAiBtC;IAED;;;;;OAKG;IACH,SAAS,KAAK,sBAAsB,IAAI,OAAO,CAM9C;CACF"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import Vue from 'vue';
|
|
2
|
+
import { NextQuery, PreviewResults } from '@empathyco/x-types';
|
|
3
|
+
import { Dictionary } from '@empathyco/x-utils';
|
|
4
|
+
/**
|
|
5
|
+
* Retrieves a preview of the results of a next query and exposes them in the default slot,
|
|
6
|
+
* along with the next query and the totalResults of the search request.
|
|
7
|
+
* By default, it renders the names of the results.
|
|
8
|
+
*
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export default class NextQueryPreview extends Vue {
|
|
12
|
+
/**
|
|
13
|
+
* The next query to retrieve the results preview.
|
|
14
|
+
*
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
protected suggestion: NextQuery;
|
|
18
|
+
/**
|
|
19
|
+
* The results preview of the next queries mounted.
|
|
20
|
+
* It is a dictionary, indexed by the next query query.
|
|
21
|
+
*/
|
|
22
|
+
previewResults: Dictionary<PreviewResults>;
|
|
23
|
+
/**
|
|
24
|
+
* The component emits the NextQueryPreviewMounted event to retrieve the results preview
|
|
25
|
+
* of the next query.
|
|
26
|
+
*/
|
|
27
|
+
mounted(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Gets from the state the results preview of the next query.
|
|
30
|
+
*
|
|
31
|
+
* @returns The results preview of the actual next query.
|
|
32
|
+
*/
|
|
33
|
+
get suggestionResults(): PreviewResults;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=next-query-preview.vue?rollup-plugin-vue=script.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next-query-preview.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/next-queries/components/next-query-preview.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAgCA,OAAO,GAAG,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAKhD;;;;;;GAMG;AAIH,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,GAAG;IAC/C;;;;OAIG;IAIH,SAAS,CAAC,UAAU,EAAG,SAAS,CAAC;IAEjC;;;OAGG;IAEI,cAAc,EAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IAEnD;;;OAGG;IACH,OAAO,IAAI,IAAI;IAIf;;;;OAIG;IACH,IAAW,iBAAiB,IAAI,cAAc,CAE7C;CACF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Result } from '@empathyco/x-types';
|
|
2
2
|
import Vue from 'vue';
|
|
3
3
|
import { InfiniteScroll } from '../../../directives/infinite-scroll/infinite-scroll.types';
|
|
4
|
+
import { RequestStatus } from '../../../store/utils/status-store.utils';
|
|
4
5
|
/**
|
|
5
6
|
* It renders a {@link ItemsList} list with the results from {@link SearchState.results} by
|
|
6
7
|
* default.
|
|
@@ -23,12 +24,32 @@ export default class ResultsList extends Vue implements InfiniteScroll {
|
|
|
23
24
|
* @public
|
|
24
25
|
*/
|
|
25
26
|
items: Result[];
|
|
27
|
+
/**
|
|
28
|
+
* It provides the search query.
|
|
29
|
+
* This query is updated only when the search request has succeeded.
|
|
30
|
+
*/
|
|
31
|
+
providedQuery: string;
|
|
32
|
+
/**
|
|
33
|
+
* The status of the search request, taken from the state.
|
|
34
|
+
*/
|
|
35
|
+
searchStatus: RequestStatus;
|
|
36
|
+
/**
|
|
37
|
+
* The query of the search request, taken from the state.
|
|
38
|
+
*/
|
|
39
|
+
searchQuery: string;
|
|
26
40
|
/**
|
|
27
41
|
* Animation component that will be used to animate the results.
|
|
28
42
|
*
|
|
29
43
|
* @public
|
|
30
44
|
*/
|
|
31
45
|
protected animation: Vue | string;
|
|
46
|
+
/**
|
|
47
|
+
* Updates the query to be provided to the child components
|
|
48
|
+
* when the search request has succeeded.
|
|
49
|
+
*
|
|
50
|
+
* @param status - The status of the search request.
|
|
51
|
+
*/
|
|
52
|
+
updateQuery(status: RequestStatus): void;
|
|
32
53
|
/**
|
|
33
54
|
* It emits an {@link SearchXEvents.UserReachedResultsListEnd} event.
|
|
34
55
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"results-list.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/search/components/results-list.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,GAAG,MAAM,KAAK,CAAC;AAQtB,OAAO,EAAE,cAAc,EAAE,MAAM,2DAA2D,CAAC;
|
|
1
|
+
{"version":3,"file":"results-list.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/search/components/results-list.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,GAAG,MAAM,KAAK,CAAC;AAQtB,OAAO,EAAE,cAAc,EAAE,MAAM,2DAA2D,CAAC;AAE3F,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAExE;;;;;;;;;;GAUG;AAQH,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,GAAI,YAAW,cAAc;IACpE;;;;;;;;OAQG;IAGI,KAAK,EAAG,MAAM,EAAE,CAAC;IAExB;;;OAGG;IAEI,aAAa,SAAM;IAE1B;;OAEG;IAEI,YAAY,EAAG,aAAa,CAAC;IAEpC;;OAEG;IAEI,WAAW,EAAG,MAAM,CAAC;IAE5B;;;;OAIG;IAEH,SAAS,CAAC,SAAS,EAAG,GAAG,GAAG,MAAM,CAAC;IAEnC;;;;;OAKG;IAEH,WAAW,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;IAMxC;;;;OAIG;IACH,mBAAmB,IAAI,IAAI;CAG5B"}
|