@empathyco/x-components 3.0.0-alpha.72 → 3.0.0-alpha.75

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 (52) hide show
  1. package/CHANGELOG.md +25 -225
  2. package/design-system/full-theme.css +49 -48
  3. package/docs/API-reference/api/x-components.baseresultpreviousprice.format.md +2 -2
  4. package/docs/API-reference/api/x-components.baseresultpreviousprice.md +1 -1
  5. package/docs/API-reference/api/x-components.historyqueriesactions.md +1 -0
  6. package/docs/API-reference/api/x-components.historyqueriesactions.togglehistoryqueries.md +24 -0
  7. package/docs/API-reference/api/x-components.historyqueriesmutations.md +1 -0
  8. package/docs/API-reference/api/x-components.historyqueriesmutations.setisenabled.md +24 -0
  9. package/docs/API-reference/api/x-components.historyqueriesstate.isenabled.md +13 -0
  10. package/docs/API-reference/api/x-components.historyqueriesstate.md +1 -0
  11. package/docs/API-reference/api/x-components.historyqueriesxevents.md +1 -0
  12. package/docs/API-reference/api/x-components.historyqueriesxevents.usertoggledhistoryqueries.md +13 -0
  13. package/docs/API-reference/api/x-components.md +1 -0
  14. package/docs/API-reference/api/x-components.togglehistoryqueries.md +13 -0
  15. package/docs/API-reference/components/common/currency/x-components.base-currency.md +267 -28
  16. package/docs/API-reference/components/common/result/x-components.base-result-previous-price.md +36 -8
  17. package/history-queries/index.js +1 -1
  18. package/js/components/currency/base-currency.vue.js.map +1 -1
  19. package/js/components/currency/base-currency.vue_rollup-plugin-vue_script.vue.js +1 -5
  20. package/js/components/currency/base-currency.vue_rollup-plugin-vue_script.vue.js.map +1 -1
  21. package/js/components/result/base-result-previous-price.vue.js.map +1 -1
  22. package/js/components/result/base-result-previous-price.vue_rollup-plugin-vue_script.vue.js +1 -1
  23. package/js/components/result/base-result-previous-price.vue_rollup-plugin-vue_script.vue.js.map +1 -1
  24. package/js/index.js +1 -1
  25. package/js/x-modules/history-queries/store/actions/set-history-queries.action.js +6 -4
  26. package/js/x-modules/history-queries/store/actions/set-history-queries.action.js.map +1 -1
  27. package/js/x-modules/history-queries/store/actions/toggle-history-queries.action.js +13 -0
  28. package/js/x-modules/history-queries/store/actions/toggle-history-queries.action.js.map +1 -0
  29. package/js/x-modules/history-queries/store/constants.js +3 -2
  30. package/js/x-modules/history-queries/store/constants.js.map +1 -1
  31. package/js/x-modules/history-queries/store/module.js +11 -3
  32. package/js/x-modules/history-queries/store/module.js.map +1 -1
  33. package/js/x-modules/history-queries/wiring.js +10 -1
  34. package/js/x-modules/history-queries/wiring.js.map +1 -1
  35. package/package.json +7 -7
  36. package/report/x-components.api.json +173 -3
  37. package/report/x-components.api.md +11 -1
  38. package/types/components/currency/base-currency.vue.d.ts.map +1 -1
  39. package/types/components/result/base-result-previous-price.vue.d.ts +1 -2
  40. package/types/components/result/base-result-previous-price.vue.d.ts.map +1 -1
  41. package/types/x-modules/history-queries/events.types.d.ts +5 -0
  42. package/types/x-modules/history-queries/events.types.d.ts.map +1 -1
  43. package/types/x-modules/history-queries/store/actions/set-history-queries.action.d.ts.map +1 -1
  44. package/types/x-modules/history-queries/store/actions/toggle-history-queries.action.d.ts +3 -0
  45. package/types/x-modules/history-queries/store/actions/toggle-history-queries.action.d.ts.map +1 -0
  46. package/types/x-modules/history-queries/store/constants.d.ts +1 -0
  47. package/types/x-modules/history-queries/store/constants.d.ts.map +1 -1
  48. package/types/x-modules/history-queries/store/module.d.ts.map +1 -1
  49. package/types/x-modules/history-queries/store/types.d.ts +17 -0
  50. package/types/x-modules/history-queries/store/types.d.ts.map +1 -1
  51. package/types/x-modules/history-queries/wiring.d.ts +9 -0
  52. package/types/x-modules/history-queries/wiring.d.ts.map +1 -1
@@ -26,6 +26,10 @@ export interface HistoryQueriesState extends QueryState {
26
26
  * The current query for searching into the {@link HistoryQueriesState.historyQueries}.
27
27
  */
28
28
  query: string;
29
+ /**
30
+ * Whether the history queries are enabled or disabled.
31
+ */
32
+ isEnabled: boolean;
29
33
  }
30
34
  /**
31
35
  * HistoryQueries store getters.
@@ -75,6 +79,12 @@ export interface HistoryQueriesMutations extends QueryMutations {
75
79
  * @param query - The new {@link HistoryQueriesState.query }.
76
80
  */
77
81
  setQuery(query: string): void;
82
+ /**
83
+ * Sets the {@link HistoryQueriesState.isEnabled } property.
84
+ *
85
+ * @param isEnabled - The new {@link HistoryQueriesState.isEnabled }.
86
+ */
87
+ setIsEnabled(isEnabled: boolean): void;
78
88
  }
79
89
  /**
80
90
  * HistoryQueries store actions.
@@ -156,6 +166,13 @@ export interface HistoryQueriesActions {
156
166
  * @param urlParams - List of params from the url.
157
167
  */
158
168
  setUrlParams(urlParams: UrlParams): void;
169
+ /**
170
+ * Toggles the history queries and stores the state in the browser storage. It also cleans the
171
+ * history queries when disabling them.
172
+ *
173
+ * @param isEnabled - Whether to enable or disable the history queries.
174
+ */
175
+ toggleHistoryQueries(isEnabled: boolean): void;
159
176
  }
160
177
  /**
161
178
  * HistoryQueries type safe store module.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/history-queries/store/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD;;;;GAIG;AACH,MAAM,WAAW,mBAAoB,SAAQ,UAAU;IACrD;;OAEG;IACH,MAAM,EAAE,oBAAoB,CAAC;IAC7B;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,cAAc,EAAE,YAAY,EAAE,CAAC;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,WAAW,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qBAAqB;IACpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC;;;OAGG;IACH,oCAAoC,IAAI,IAAI,CAAC;IAC7C;;OAEG;IACH,cAAc,IAAI,IAAI,CAAC;IACvB;;;;OAIG;IACH,iBAAiB,CAAC,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC;IACpD;;;;;;OAMG;IACH,iBAAiB,CAAC,cAAc,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;IACxD;;;;OAIG;IACH,YAAY,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC;IACzC;;;;;OAKG;IACH,oBAAoB,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI,CAAC;CAChD;AACD;;;;GAIG;AACH,oBAAY,0BAA0B,GAAG,YAAY,CACnD,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,CACtB,CAAC;AAEF;;;;GAIG;AACH,oBAAY,2BAA2B,GAAG,cAAc,CACtD,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,CACtB,CAAC"}
@@ -42,6 +42,12 @@ export declare const clearHistoryQueries: import("../..").AnyWire;
42
42
  * @public
43
43
  */
44
44
  export declare const removeHistoryQuery: import("../..").Wire<import("@empathyco/x-types").HistoryQuery>;
45
+ /**
46
+ * Enables or disables history queries.
47
+ *
48
+ * @public
49
+ */
50
+ export declare const toggleHistoryQueries: import("../..").Wire<boolean>;
45
51
  /**
46
52
  * Default wiring for the {@link HistoryQueries} module.
47
53
  *
@@ -73,5 +79,8 @@ export declare const historyQueriesWiring: {
73
79
  UserPressedRemoveHistoryQuery: {
74
80
  removeHistoryQuery: import("../..").Wire<import("@empathyco/x-types").HistoryQuery>;
75
81
  };
82
+ UserToggledHistoryQueries: {
83
+ toggleHistoryQueries: import("../..").Wire<boolean>;
84
+ };
76
85
  };
77
86
  //# sourceMappingURL=wiring.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../../../src/x-modules/history-queries/wiring.ts"],"names":[],"mappings":"AAkCA;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,8BAAoC,CAAC;AAE1E;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,8BAAyB,CAAC;AAS7D;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,yBAA6B,CAAC;AAEnE;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,yBAA+C,CAAC;AAEzF;;;;;GAKG;AACH,eAAO,MAAM,wCAAwC,yBAEpD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,yBAAwC,CAAC;AAEzE;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,iEAAoC,CAAC;AAOpE;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;CA8B/B,CAAC"}
1
+ {"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../../../src/x-modules/history-queries/wiring.ts"],"names":[],"mappings":"AAkCA;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,8BAAoC,CAAC;AAE1E;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,8BAAyB,CAAC;AAS7D;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,yBAA6B,CAAC;AAEnE;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,yBAA+C,CAAC;AAEzF;;;;;GAKG;AACH,eAAO,MAAM,wCAAwC,yBAEpD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,yBAAwC,CAAC;AAEzE;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,iEAAoC,CAAC;AACpE;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,+BAAuC,CAAC;AAOzE;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiC/B,CAAC"}