@empathyco/x-components 3.0.0-alpha.241 → 3.0.0-alpha.243

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/design-system/default-theme.css +9 -9
  3. package/design-system/full-theme.css +63 -64
  4. package/docs/API-reference/api/x-components.searchxevents.md +1 -1
  5. package/docs/API-reference/api/{x-components.searchxevents.searchresponseprovided.md → x-components.searchxevents.searchresponsechanged.md} +3 -3
  6. package/docs/API-reference/components/history-queries/x-components.history-queries.md +9 -9
  7. package/docs/API-reference/components/next-queries/x-components.next-queries.md +8 -8
  8. package/docs/API-reference/components/popular-searches/x-components.popular-searches.md +4 -4
  9. package/docs/API-reference/components/query-suggestions/x-components.query-suggestions.md +19 -19
  10. package/js/components/highlight.vue.js +95 -0
  11. package/js/components/highlight.vue.js.map +1 -0
  12. package/js/components/highlight.vue_rollup-plugin-vue_script.vue.js +95 -0
  13. package/js/components/highlight.vue_rollup-plugin-vue_script.vue.js.map +1 -0
  14. package/js/x-modules/history-queries/components/history-queries.vue.js +15 -22
  15. package/js/x-modules/history-queries/components/history-queries.vue.js.map +1 -1
  16. package/js/x-modules/history-queries/components/history-queries.vue_rollup-plugin-vue_script.vue.js +1 -0
  17. package/js/x-modules/history-queries/components/history-queries.vue_rollup-plugin-vue_script.vue.js.map +1 -1
  18. package/js/x-modules/history-queries/store/getters/history-queries-with-results.getter.js +1 -1
  19. package/js/x-modules/history-queries/store/getters/history-queries-with-results.getter.js.map +1 -1
  20. package/js/x-modules/history-queries/wiring.js +1 -1
  21. package/js/x-modules/history-queries/wiring.js.map +1 -1
  22. package/js/x-modules/next-queries/components/next-queries.vue.js +9 -10
  23. package/js/x-modules/next-queries/components/next-queries.vue.js.map +1 -1
  24. package/js/x-modules/next-queries/components/next-queries.vue_rollup-plugin-vue_script.vue.js +1 -0
  25. package/js/x-modules/next-queries/components/next-queries.vue_rollup-plugin-vue_script.vue.js.map +1 -1
  26. package/js/x-modules/popular-searches/components/popular-searches.vue.js +9 -17
  27. package/js/x-modules/popular-searches/components/popular-searches.vue.js.map +1 -1
  28. package/js/x-modules/popular-searches/components/popular-searches.vue_rollup-plugin-vue_script.vue.js +1 -0
  29. package/js/x-modules/popular-searches/components/popular-searches.vue_rollup-plugin-vue_script.vue.js.map +1 -1
  30. package/js/x-modules/query-suggestions/components/query-suggestions.vue.js +9 -8
  31. package/js/x-modules/query-suggestions/components/query-suggestions.vue.js.map +1 -1
  32. package/js/x-modules/query-suggestions/components/query-suggestions.vue_rollup-plugin-vue_script.vue.js +5 -3
  33. package/js/x-modules/query-suggestions/components/query-suggestions.vue_rollup-plugin-vue_script.vue.js.map +1 -1
  34. package/js/x-modules/search/store/emitters.js +1 -1
  35. package/js/x-modules/search/store/emitters.js.map +1 -1
  36. package/package.json +2 -2
  37. package/report/x-components.api.json +3 -3
  38. package/report/x-components.api.md +3 -3
  39. package/types/components/highlight.vue.d.ts +86 -0
  40. package/types/components/highlight.vue.d.ts.map +1 -0
  41. package/types/x-modules/history-queries/components/history-queries.vue.d.ts.map +1 -1
  42. package/types/x-modules/history-queries/store/getters/history-queries-with-results.getter.d.ts.map +1 -1
  43. package/types/x-modules/history-queries/wiring.d.ts +1 -1
  44. package/types/x-modules/next-queries/components/next-queries.vue.d.ts.map +1 -1
  45. package/types/x-modules/popular-searches/components/popular-searches.vue.d.ts.map +1 -1
  46. package/types/x-modules/query-suggestions/components/query-suggestions.vue.d.ts.map +1 -1
  47. package/types/x-modules/search/events.types.d.ts +1 -1
  48. package/types/x-modules/search/events.types.d.ts.map +1 -1
  49. package/types/x-modules/search/store/emitters.d.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"query-suggestions.vue_rollup-plugin-vue_script.vue.js","sources":["../../../../../src/x-modules/query-suggestions/components/query-suggestions.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Suggestion } from '@empathyco/x-types';\nimport Vue from 'vue';\nimport { Component } from 'vue-property-decorator';\nimport BaseSuggestions from '../../../components/suggestions/base-suggestions.vue';\nimport { Getter } from '../../../components/decorators/store.decorators';\nimport { xComponentMixin } from '../../../components/x-component.mixin';\nimport { querySuggestionsXModule } from '../x-module';\nimport QuerySuggestion from './query-suggestion.vue';\n\n/**\n * This component renders a list of possible search queries to select from as a query is entered\n * in the input field. By default, this is a list of\n * [`QuerySuggestion`](./x-components.query-suggestion.md) components.\n *\n * @public\n */\n@Component({\n components: { BaseSuggestions, QuerySuggestion },\n mixins: [xComponentMixin(querySuggestionsXModule)]\n})\nexport default class QuerySuggestions extends Vue {\n /**\n * The module's list of suggestions.\n *\n * @internal\n */\n @Getter('querySuggestions', 'querySuggestions')\n public suggestions!: Suggestion[];\n}\n"],"names":["BaseSuggestions","QuerySuggestion"],"mappings":";;;;;;;;;AA0CA;;;;;;;AAWA,IAAqB,gBAAgB,GAArC,MAAqB,gBAAiB,SAAQ,GAAG;CAQhD,CAAA;AADC;IADC,MAAM,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;qDACb;AAPf,gBAAgB;IAJpC,SAAS,CAAC;QACT,UAAU,EAAE,mBAAEA,iBAAe,mBAAEC,mBAAe,EAAE;QAChD,MAAM,EAAE,CAAC,eAAe,CAAC,uBAAuB,CAAC,CAAC;KACnD,CAAC;GACmB,gBAAgB,CAQpC;aARoB,gBAAgB;;;;"}
1
+ {"version":3,"file":"query-suggestions.vue_rollup-plugin-vue_script.vue.js","sources":["../../../../../src/x-modules/query-suggestions/components/query-suggestions.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Suggestion } from '@empathyco/x-types';\nimport Vue from 'vue';\nimport { Component } from 'vue-property-decorator';\nimport Highlight from '../../../components/highlight.vue';\nimport BaseSuggestions from '../../../components/suggestions/base-suggestions.vue';\nimport { Getter } from '../../../components/decorators/store.decorators';\nimport { xComponentMixin } from '../../../components/x-component.mixin';\nimport { querySuggestionsXModule } from '../x-module';\nimport QuerySuggestion from './query-suggestion.vue';\n\n/**\n * This component renders a list of possible search queries to select from as a query is entered\n * in the input field. By default, this is a list of\n * [`QuerySuggestion`](./x-components.query-suggestion.md) components.\n *\n * @public\n */\n@Component({\n inheritAttrs: false,\n components: { Highlight, BaseSuggestions, QuerySuggestion },\n mixins: [xComponentMixin(querySuggestionsXModule)]\n})\nexport default class QuerySuggestions extends Vue {\n /**\n * The module's list of suggestions.\n *\n * @internal\n */\n @Getter('querySuggestions', 'querySuggestions')\n public suggestions!: Suggestion[];\n}\n"],"names":["Highlight","BaseSuggestions","QuerySuggestion"],"mappings":";;;;;;;;;;AA4CA;;;;;;;AAYA,IAAqB,gBAAgB,GAArC,MAAqB,gBAAiB,SAAQ,GAAG;CAQhD,CAAA;AADC;IADC,MAAM,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;qDACb;AAPf,gBAAgB;IALpC,SAAS,CAAC;QACT,YAAY,EAAE,KAAK;QACnB,UAAU,EAAE,aAAEA,iBAAS,mBAAEC,mBAAe,mBAAEC,mBAAe,EAAE;QAC3D,MAAM,EAAE,CAAC,eAAe,CAAC,uBAAuB,CAAC,CAAC;KACnD,CAAC;GACmB,gBAAgB,CAQpC;aARoB,gBAAgB;;;;"}
@@ -23,7 +23,7 @@ const searchEmitters = createStoreEmitters(searchXStoreModule, {
23
23
  return !!newValue && !!oldValue;
24
24
  }
25
25
  },
26
- SearchResponseProvided: {
26
+ SearchResponseChanged: {
27
27
  selector: (state, getters) => {
28
28
  return {
29
29
  request: getters.request,
@@ -1 +1 @@
1
- {"version":3,"file":"emitters.js","sources":["../../../../../src/x-modules/search/store/emitters.ts"],"sourcesContent":["import { createStoreEmitters } from '../../../store';\nimport { isStringEmpty } from '../../../utils/string';\nimport { searchXStoreModule } from './module';\n\n/**\n * {@link StoreEmitters} For the search module.\n *\n * @internal\n */\nexport const searchEmitters = createStoreEmitters(searchXStoreModule, {\n FacetsChanged: {\n selector: state => state.facets,\n filter(newValue, oldValue): boolean {\n return newValue.length !== 0 || oldValue.length !== 0;\n }\n },\n PageChanged: state => state.page,\n ResultsChanged: state => state.results,\n SearchRequestChanged: (_, getters) => getters.request,\n SearchRequestUpdated: {\n selector: (_, getters) => getters.request!,\n filter(newValue, oldValue): boolean {\n return !!newValue && !!oldValue;\n }\n },\n SearchResponseProvided: {\n selector: (state, getters) => {\n return {\n request: getters.request!,\n status: state.status,\n banners: state.banners,\n facets: state.facets,\n partialResults: state.partialResults,\n promoteds: state.promoteds,\n queryTagging: state.queryTagging,\n redirections: state.redirections,\n results: state.results,\n spellcheck: state.spellcheckedQuery,\n totalResults: state.totalResults\n };\n },\n filter: (newValue, oldValue) =>\n newValue.status !== oldValue.status && oldValue.status === 'loading' && !!newValue.request\n },\n SearchTaggingChanged: {\n selector: state => state.queryTagging,\n filter: ({ url }) => !isStringEmpty(url)\n },\n SpellcheckChanged: state => state.spellcheckedQuery,\n SortChanged: state => state.sort\n});\n"],"names":[],"mappings":";;;;AAIA;;;;;MAKa,cAAc,GAAG,mBAAmB,CAAC,kBAAkB,EAAE;IACpE,aAAa,EAAE;QACb,QAAQ,EAAE,KAAK,IAAI,KAAK,CAAC,MAAM;QAC/B,MAAM,CAAC,QAAQ,EAAE,QAAQ;YACvB,OAAO,QAAQ,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC;SACvD;KACF;IACD,WAAW,EAAE,KAAK,IAAI,KAAK,CAAC,IAAI;IAChC,cAAc,EAAE,KAAK,IAAI,KAAK,CAAC,OAAO;IACtC,oBAAoB,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO;IACrD,oBAAoB,EAAE;QACpB,QAAQ,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,OAAQ;QAC1C,MAAM,CAAC,QAAQ,EAAE,QAAQ;YACvB,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,QAAQ,CAAC;SACjC;KACF;IACD,sBAAsB,EAAE;QACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO;YACvB,OAAO;gBACL,OAAO,EAAE,OAAO,CAAC,OAAQ;gBACzB,MAAM,EAAE,KAAK,CAAC,MAAM;gBACpB,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,MAAM,EAAE,KAAK,CAAC,MAAM;gBACpB,cAAc,EAAE,KAAK,CAAC,cAAc;gBACpC,SAAS,EAAE,KAAK,CAAC,SAAS;gBAC1B,YAAY,EAAE,KAAK,CAAC,YAAY;gBAChC,YAAY,EAAE,KAAK,CAAC,YAAY;gBAChC,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,UAAU,EAAE,KAAK,CAAC,iBAAiB;gBACnC,YAAY,EAAE,KAAK,CAAC,YAAY;aACjC,CAAC;SACH;QACD,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,KACzB,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM,IAAI,QAAQ,CAAC,MAAM,KAAK,SAAS,IAAI,CAAC,CAAC,QAAQ,CAAC,OAAO;KAC7F;IACD,oBAAoB,EAAE;QACpB,QAAQ,EAAE,KAAK,IAAI,KAAK,CAAC,YAAY;QACrC,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC;KACzC;IACD,iBAAiB,EAAE,KAAK,IAAI,KAAK,CAAC,iBAAiB;IACnD,WAAW,EAAE,KAAK,IAAI,KAAK,CAAC,IAAI;CACjC;;;;"}
1
+ {"version":3,"file":"emitters.js","sources":["../../../../../src/x-modules/search/store/emitters.ts"],"sourcesContent":["import { createStoreEmitters } from '../../../store';\nimport { isStringEmpty } from '../../../utils/string';\nimport { searchXStoreModule } from './module';\n\n/**\n * {@link StoreEmitters} For the search module.\n *\n * @internal\n */\nexport const searchEmitters = createStoreEmitters(searchXStoreModule, {\n FacetsChanged: {\n selector: state => state.facets,\n filter(newValue, oldValue): boolean {\n return newValue.length !== 0 || oldValue.length !== 0;\n }\n },\n PageChanged: state => state.page,\n ResultsChanged: state => state.results,\n SearchRequestChanged: (_, getters) => getters.request,\n SearchRequestUpdated: {\n selector: (_, getters) => getters.request!,\n filter(newValue, oldValue): boolean {\n return !!newValue && !!oldValue;\n }\n },\n SearchResponseChanged: {\n selector: (state, getters) => {\n return {\n request: getters.request!,\n status: state.status,\n banners: state.banners,\n facets: state.facets,\n partialResults: state.partialResults,\n promoteds: state.promoteds,\n queryTagging: state.queryTagging,\n redirections: state.redirections,\n results: state.results,\n spellcheck: state.spellcheckedQuery,\n totalResults: state.totalResults\n };\n },\n filter: (newValue, oldValue) =>\n newValue.status !== oldValue.status && oldValue.status === 'loading' && !!newValue.request\n },\n SearchTaggingChanged: {\n selector: state => state.queryTagging,\n filter: ({ url }) => !isStringEmpty(url)\n },\n SpellcheckChanged: state => state.spellcheckedQuery,\n SortChanged: state => state.sort\n});\n"],"names":[],"mappings":";;;;AAIA;;;;;MAKa,cAAc,GAAG,mBAAmB,CAAC,kBAAkB,EAAE;IACpE,aAAa,EAAE;QACb,QAAQ,EAAE,KAAK,IAAI,KAAK,CAAC,MAAM;QAC/B,MAAM,CAAC,QAAQ,EAAE,QAAQ;YACvB,OAAO,QAAQ,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC;SACvD;KACF;IACD,WAAW,EAAE,KAAK,IAAI,KAAK,CAAC,IAAI;IAChC,cAAc,EAAE,KAAK,IAAI,KAAK,CAAC,OAAO;IACtC,oBAAoB,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO;IACrD,oBAAoB,EAAE;QACpB,QAAQ,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,OAAQ;QAC1C,MAAM,CAAC,QAAQ,EAAE,QAAQ;YACvB,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,QAAQ,CAAC;SACjC;KACF;IACD,qBAAqB,EAAE;QACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO;YACvB,OAAO;gBACL,OAAO,EAAE,OAAO,CAAC,OAAQ;gBACzB,MAAM,EAAE,KAAK,CAAC,MAAM;gBACpB,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,MAAM,EAAE,KAAK,CAAC,MAAM;gBACpB,cAAc,EAAE,KAAK,CAAC,cAAc;gBACpC,SAAS,EAAE,KAAK,CAAC,SAAS;gBAC1B,YAAY,EAAE,KAAK,CAAC,YAAY;gBAChC,YAAY,EAAE,KAAK,CAAC,YAAY;gBAChC,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,UAAU,EAAE,KAAK,CAAC,iBAAiB;gBACnC,YAAY,EAAE,KAAK,CAAC,YAAY;aACjC,CAAC;SACH;QACD,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,KACzB,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM,IAAI,QAAQ,CAAC,MAAM,KAAK,SAAS,IAAI,CAAC,CAAC,QAAQ,CAAC,OAAO;KAC7F;IACD,oBAAoB,EAAE;QACpB,QAAQ,EAAE,KAAK,IAAI,KAAK,CAAC,YAAY;QACrC,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC;KACzC;IACD,iBAAiB,EAAE,KAAK,IAAI,KAAK,CAAC,iBAAiB;IACnD,WAAW,EAAE,KAAK,IAAI,KAAK,CAAC,IAAI;CACjC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empathyco/x-components",
3
- "version": "3.0.0-alpha.241",
3
+ "version": "3.0.0-alpha.243",
4
4
  "description": "Empathy X Components",
5
5
  "author": "Empathy Systems Corporation S.L.",
6
6
  "license": "Apache-2.0",
@@ -135,5 +135,5 @@
135
135
  "access": "public",
136
136
  "directory": "dist"
137
137
  },
138
- "gitHead": "decafcf8f16cd9c5f68f801ea0fea32ec76f15c5"
138
+ "gitHead": "7fb59817f269bebb2a69f75cf1ea68c9611cc56c"
139
139
  }
@@ -44093,12 +44093,12 @@
44093
44093
  },
44094
44094
  {
44095
44095
  "kind": "PropertySignature",
44096
- "canonicalReference": "@empathyco/x-components!SearchXEvents#SearchResponseProvided:member",
44096
+ "canonicalReference": "@empathyco/x-components!SearchXEvents#SearchResponseChanged:member",
44097
44097
  "docComment": "/**\n * A search response has been provided. Payload: The provided internal response object.\n */\n",
44098
44098
  "excerptTokens": [
44099
44099
  {
44100
44100
  "kind": "Content",
44101
- "text": "SearchResponseProvided: "
44101
+ "text": "SearchResponseChanged: "
44102
44102
  },
44103
44103
  {
44104
44104
  "kind": "Reference",
@@ -44112,7 +44112,7 @@
44112
44112
  ],
44113
44113
  "isOptional": false,
44114
44114
  "releaseTag": "Public",
44115
- "name": "SearchResponseProvided",
44115
+ "name": "SearchResponseChanged",
44116
44116
  "propertyTypeTokenRange": {
44117
44117
  "startIndex": 1,
44118
44118
  "endIndex": 2
@@ -2097,7 +2097,7 @@ export const historyQueriesWiring: {
2097
2097
  UserClickedOutOfMainModal: {
2098
2098
  clearHistoryQueriesQuery: AnyWire;
2099
2099
  };
2100
- SearchResponseProvided: {
2100
+ SearchResponseChanged: {
2101
2101
  updateHistoryQueriesWithSearchResponse: Wire<InternalSearchResponse>;
2102
2102
  };
2103
2103
  };
@@ -3996,7 +3996,7 @@ export const searchEmitters: {
3996
3996
  selector: (_: SearchState, getters: Returns<GettersTree<SearchState, SearchGetters>>) => InternalSearchRequest;
3997
3997
  filter(newValue: InternalSearchRequest, oldValue: InternalSearchRequest): boolean;
3998
3998
  };
3999
- SearchResponseProvided: {
3999
+ SearchResponseChanged: {
4000
4000
  selector: (state: SearchState, getters: Returns<GettersTree<SearchState, SearchGetters>>) => {
4001
4001
  request: InternalSearchRequest;
4002
4002
  status: RequestStatus;
@@ -4241,7 +4241,7 @@ export interface SearchXEvents {
4241
4241
  ResultsChanged: Result[];
4242
4242
  SearchRequestChanged: InternalSearchRequest | null;
4243
4243
  SearchRequestUpdated: InternalSearchRequest;
4244
- SearchResponseProvided: InternalSearchResponse;
4244
+ SearchResponseChanged: InternalSearchResponse;
4245
4245
  SearchTaggingChanged: TaggingRequest;
4246
4246
  SelectedSortProvided: Sort;
4247
4247
  SortChanged: string;
@@ -0,0 +1,86 @@
1
+ import { VueCSSClasses } from '../utils/types';
2
+ declare const Highlight_base: import("vue-class-component/lib/declarations").VueClass<object & Record<never, any> & Partial<Record<"noMatchClass" | "matchingPartClass", string>>>;
3
+ /**
4
+ * Highlights the given part of the text. The component is smart enough to do matches
5
+ * between special characters like tilde, cedilla, eñe, capital letters...
6
+ *
7
+ * @public
8
+ */
9
+ export default class Highlight extends Highlight_base {
10
+ /**
11
+ * The text to highlight some part of it.
12
+ *
13
+ * @public
14
+ */
15
+ text: string;
16
+ /**
17
+ * The part of the text to be highlighted.
18
+ *
19
+ * @public
20
+ */
21
+ highlight: string;
22
+ /**
23
+ * CSS Class to add when the `text` string contains the `highlight` string.
24
+ */
25
+ matchClass: string;
26
+ /**
27
+ * Checks if the normalized suggestion query matches with the module's query, so it has a
28
+ * matching part.
29
+ *
30
+ * @returns True if there is a match between the text and the highlight strings.
31
+ * @internal
32
+ */
33
+ protected get hasMatch(): boolean;
34
+ /**
35
+ * CSS classes to add depending on the component state.
36
+ *
37
+ * @remarks
38
+ * `x-highlight--has-match`: When there is a match between the text and the part to highlight.
39
+ * `[matchClass]`: When there is a match between the text and
40
+ * the part to highlight.
41
+ * `[noMatchClass]`: when there is no match between the text to highlight.
42
+ * @returns The {@link VueCSSClasses} classes.
43
+ * @internal
44
+ */
45
+ protected get dynamicCSSClasses(): VueCSSClasses;
46
+ /**
47
+ * Splits the text to highlight into 3 parts: a starting part, the matching part
48
+ * and the ending part. If there is no match between the text and the highlight, the `start`
49
+ * property will contain the whole text.
50
+ *
51
+ * @returns An object containing the different parts of the text.
52
+ * @internal
53
+ */
54
+ protected get matchParts(): HighlightMatch;
55
+ /**
56
+ * Splits the label in three parts based on two indexes.
57
+ *
58
+ * @param label - The string that will be divided in three parts.
59
+ * @param start - The first index that the label will be divided by.
60
+ * @param end - The second index that the label will be divided by.
61
+ *
62
+ * @returns The three parts of the divided label.
63
+ * @internal
64
+ */
65
+ protected splitAt(label: string, start: number, end: number): HighlightMatch;
66
+ }
67
+ /**
68
+ * Contains the different parts of a string match.
69
+ */
70
+ interface HighlightMatch {
71
+ /**
72
+ * When the match does not happen from the beginning of the string, the initial unmatched
73
+ * part.
74
+ */
75
+ start: string;
76
+ /**
77
+ * The part of the text that is matching.
78
+ */
79
+ match: string;
80
+ /**
81
+ * When the match does not extend until the end, the remaining unmatched string.
82
+ */
83
+ end: string;
84
+ }
85
+ export {};
86
+ //# sourceMappingURL=highlight.vue?rollup-plugin-vue=script.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"highlight.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../src/components/highlight.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AA+BA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;;AAI/C;;;;;GAKG;AAIH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,cAEtC;IACC;;;;OAIG;IAEI,IAAI,EAAG,MAAM,CAAC;IAErB;;;;OAIG;IAEI,SAAS,EAAG,MAAM,CAAC;IAE1B;;OAEG;IAEI,UAAU,EAAG,MAAM,CAAC;IAE3B;;;;;;OAMG;IACH,SAAS,KAAK,QAAQ,IAAI,OAAO,CAEhC;IAED;;;;;;;;;;OAUG;IACH,SAAS,KAAK,iBAAiB,IAAI,aAAa,CAU/C;IAED;;;;;;;OAOG;IACH,SAAS,KAAK,UAAU,IAAI,cAAc,CAKzC;IAED;;;;;;;;;OASG;IACH,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,cAAc;CAO7E;AAED;;GAEG;AACH,UAAU,cAAc;IACtB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb"}
@@ -1 +1 @@
1
- {"version":3,"file":"history-queries.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/history-queries/components/history-queries.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AA8CA,OAAO,EAAE,YAAY,IAAI,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,GAAG,MAAM,KAAK,CAAC;AAQtB;;;;;;GAMG;AAKH,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,GAAG;IAC7C;;;;OAIG;IAEI,cAAc,EAAG,iBAAiB,EAAE,CAAC;CAC7C"}
1
+ {"version":3,"file":"history-queries.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/history-queries/components/history-queries.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAgDA,OAAO,EAAE,YAAY,IAAI,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,GAAG,MAAM,KAAK,CAAC;AAQtB;;;;;;GAMG;AAMH,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,GAAG;IAC7C;;;;OAIG;IAEI,cAAc,EAAG,iBAAiB,EAAE,CAAC;CAC7C"}
@@ -1 +1 @@
1
- {"version":3,"file":"history-queries-with-results.getter.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/history-queries/store/getters/history-queries-with-results.getter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAEtD;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,yBAAyB,EAAE,0BAA0B,CAAC,SAAS,CAAC,CAAC,2BAA2B,CACb,CAAC"}
1
+ {"version":3,"file":"history-queries-with-results.getter.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/history-queries/store/getters/history-queries-with-results.getter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAEtD;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,yBAAyB,EAAE,0BAA0B,CAAC,SAAS,CAAC,CAAC,2BAA2B,CACT,CAAC"}
@@ -103,7 +103,7 @@ export declare const historyQueriesWiring: {
103
103
  UserClickedOutOfMainModal: {
104
104
  clearHistoryQueriesQuery: import("../..").AnyWire;
105
105
  };
106
- SearchResponseProvided: {
106
+ SearchResponseChanged: {
107
107
  updateHistoryQueriesWithSearchResponse: import("../..").Wire<import("../search").InternalSearchResponse>;
108
108
  };
109
109
  };
@@ -1 +1 @@
1
- {"version":3,"file":"next-queries.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/next-queries/components/next-queries.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAqCA,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,GAAG,MAAM,KAAK,CAAC;AAQtB;;;;;;;;GAQG;AAKH,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,GAAG;IAC1C;;;;OAIG;IAEI,gBAAgB,EAAG,OAAO,CAAC;IAElC;;;;OAIG;IAEI,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;IAEtC;;;;OAIG;IAEI,gBAAgB,EAAG,cAAc,EAAE,CAAC;IAE3C;;;;OAIG;IACH,SAAS,KAAK,mBAAmB,IAAI,cAAc,EAAE,CAEpD;CACF"}
1
+ {"version":3,"file":"next-queries.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/next-queries/components/next-queries.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAqCA,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,GAAG,MAAM,KAAK,CAAC;AAQtB;;;;;;;;GAQG;AAMH,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,GAAG;IAC1C;;;;OAIG;IAEI,gBAAgB,EAAG,OAAO,CAAC;IAElC;;;;OAIG;IAEI,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;IAEtC;;;;OAIG;IAEI,gBAAgB,EAAG,cAAc,EAAE,CAAC;IAE3C;;;;OAIG;IACH,SAAS,KAAK,mBAAmB,IAAI,cAAc,EAAE,CAEpD;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"popular-searches.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/popular-searches/components/popular-searches.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAgCA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,GAAG,MAAM,KAAK,CAAC;AAQtB;;;;;;;GAOG;AAKH,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,GAAG;IAC9C;;;;OAIG;IAEI,eAAe,EAAG,UAAU,EAAE,CAAC;CACvC"}
1
+ {"version":3,"file":"popular-searches.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/popular-searches/components/popular-searches.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAkCA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,GAAG,MAAM,KAAK,CAAC;AAQtB;;;;;;;GAOG;AAMH,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,GAAG;IAC9C;;;;OAIG;IAEI,eAAe,EAAG,UAAU,EAAE,CAAC;CACvC"}
@@ -1 +1 @@
1
- {"version":3,"file":"query-suggestions.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/query-suggestions/components/query-suggestions.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAiCA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,GAAG,MAAM,KAAK,CAAC;AAQtB;;;;;;GAMG;AAKH,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,GAAG;IAC/C;;;;OAIG;IAEI,WAAW,EAAG,UAAU,EAAE,CAAC;CACnC"}
1
+ {"version":3,"file":"query-suggestions.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/query-suggestions/components/query-suggestions.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAkCA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,GAAG,MAAM,KAAK,CAAC;AAStB;;;;;;GAMG;AAMH,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,GAAG;IAC/C;;;;OAIG;IAEI,WAAW,EAAG,UAAU,EAAE,CAAC;CACnC"}
@@ -37,7 +37,7 @@ export interface SearchXEvents {
37
37
  * A search response has been provided.
38
38
  * Payload: The provided internal response object.
39
39
  */
40
- SearchResponseProvided: InternalSearchResponse;
40
+ SearchResponseChanged: InternalSearchResponse;
41
41
  /**
42
42
  * Query tagging has been changed.
43
43
  * Payload: The new query tagging object.
@@ -1 +1 @@
1
- {"version":3,"file":"events.types.d.ts","sourceRoot":"","sources":["../../../../src/x-modules/search/events.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,MAAM,EACN,IAAI,EACJ,WAAW,EACX,cAAc,EACd,QAAQ,EACR,MAAM,EACP,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAExE;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,aAAa,EAAE,KAAK,EAAE,CAAC;IACvB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB;;;;OAIG;IACH,oBAAoB,EAAE,qBAAqB,GAAG,IAAI,CAAC;IACnD;;;OAGG;IACH,oBAAoB,EAAE,qBAAqB,CAAC;IAC5C;;;OAGG;IACH,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C;;;OAGG;IACH,oBAAoB,EAAE,cAAc,CAAC;IACrC;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,gBAAgB,EAAE,IAAI,CAAC;IACvB;;;;;;OAMG;IACH,oBAAoB,EAAE,IAAI,CAAC;IAC3B;;;OAGG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;OAEG;IACH,yBAAyB,EAAE,IAAI,CAAC;IAChC;;;OAGG;IACH,uBAAuB,EAAE,WAAW,CAAC;IACrC;;;OAGG;IACH,oBAAoB,EAAE,QAAQ,CAAC;IAC/B;;;OAGG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,4BAA4B,EAAE,IAAI,CAAC;CACpC"}
1
+ {"version":3,"file":"events.types.d.ts","sourceRoot":"","sources":["../../../../src/x-modules/search/events.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,MAAM,EACN,IAAI,EACJ,WAAW,EACX,cAAc,EACd,QAAQ,EACR,MAAM,EACP,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAExE;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,aAAa,EAAE,KAAK,EAAE,CAAC;IACvB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB;;;;OAIG;IACH,oBAAoB,EAAE,qBAAqB,GAAG,IAAI,CAAC;IACnD;;;OAGG;IACH,oBAAoB,EAAE,qBAAqB,CAAC;IAC5C;;;OAGG;IACH,qBAAqB,EAAE,sBAAsB,CAAC;IAC9C;;;OAGG;IACH,oBAAoB,EAAE,cAAc,CAAC;IACrC;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,gBAAgB,EAAE,IAAI,CAAC;IACvB;;;;;;OAMG;IACH,oBAAoB,EAAE,IAAI,CAAC;IAC3B;;;OAGG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;OAEG;IACH,yBAAyB,EAAE,IAAI,CAAC;IAChC;;;OAGG;IACH,uBAAuB,EAAE,WAAW,CAAC;IACrC;;;OAGG;IACH,oBAAoB,EAAE,QAAQ,CAAC;IAC/B;;;OAGG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,4BAA4B,EAAE,IAAI,CAAC;CACpC"}
@@ -15,7 +15,7 @@ export declare const searchEmitters: {
15
15
  selector: (_: import("./types").SearchState, getters: import("../../..").Returns<import("../../../store").GettersTree<import("./types").SearchState, import("./types").SearchGetters>>) => import("..").InternalSearchRequest;
16
16
  filter(newValue: import("..").InternalSearchRequest, oldValue: import("..").InternalSearchRequest): boolean;
17
17
  };
18
- SearchResponseProvided: {
18
+ SearchResponseChanged: {
19
19
  selector: (state: import("./types").SearchState, getters: import("../../..").Returns<import("../../../store").GettersTree<import("./types").SearchState, import("./types").SearchGetters>>) => {
20
20
  request: import("..").InternalSearchRequest;
21
21
  status: import("../../../store").RequestStatus;