@empathyco/x-components 3.0.0-alpha.100 → 3.0.0-alpha.101

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 CHANGED
@@ -3,6 +3,19 @@
3
3
  All notable changes to this project will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.0.0-alpha.101](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.100...@empathyco/x-components@3.0.0-alpha.101) (2022-05-18)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **related-tags:** related tags are now kept when navigating back
11
+ ([db9f875](https://github.com/empathyco/x/commit/db9f87560000bca05ad3fe06fc449e170c3b9d08)),
12
+ closes [EX-6131](https://searchbroker.atlassian.net/browse/EX-6131)
13
+
14
+ # Change Log
15
+
16
+ All notable changes to this project will be documented in this file. See
17
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
18
+
6
19
  ## [3.0.0-alpha.100](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.99...@empathyco/x-components@3.0.0-alpha.100) (2022-05-17)
7
20
 
8
21
  ### Bug Fixes
@@ -747,18 +747,6 @@
747
747
  --x-size-padding-bottom-facet-header-default: var(--x-size-padding-bottom-facet-header-card);
748
748
  --x-size-padding-left-facet-header-default: var(--x-size-padding-left-facet-header-card);
749
749
  }
750
- :root {
751
- --x-size-border-radius-facet-card: var(--x-size-border-radius-base-s);
752
- --x-size-border-radius-top-left-facet-card: var(--x-size-border-radius-facet-card);
753
- --x-size-border-radius-top-right-facet-card: var(--x-size-border-radius-facet-card);
754
- --x-size-border-radius-bottom-right-facet-card: var(--x-size-border-radius-facet-card);
755
- --x-size-border-radius-bottom-left-facet-card: var(--x-size-border-radius-facet-card);
756
- --x-size-padding-facet-header-card: var(--x-size-base-03);
757
- --x-size-padding-top-facet-header-card: var(--x-size-padding-facet-header-card);
758
- --x-size-padding-right-facet-header-card: var(--x-size-padding-facet-header-card);
759
- --x-size-padding-bottom-facet-header-card: var(--x-size-padding-facet-header-card);
760
- --x-size-padding-left-facet-header-card: var(--x-size-padding-facet-header-card);
761
- }
762
750
  [dir="ltr"] .x-facet {
763
751
  border-right-width: var(--x-size-border-width-right-facet-default);
764
752
  }
@@ -7566,3 +7554,16 @@
7566
7554
  .x-normal-case {
7567
7555
  text-transform: none;
7568
7556
  }
7557
+
7558
+ :root {
7559
+ --x-size-border-radius-facet-card: var(--x-size-border-radius-base-s);
7560
+ --x-size-border-radius-top-left-facet-card: var(--x-size-border-radius-facet-card);
7561
+ --x-size-border-radius-top-right-facet-card: var(--x-size-border-radius-facet-card);
7562
+ --x-size-border-radius-bottom-right-facet-card: var(--x-size-border-radius-facet-card);
7563
+ --x-size-border-radius-bottom-left-facet-card: var(--x-size-border-radius-facet-card);
7564
+ --x-size-padding-facet-header-card: var(--x-size-base-03);
7565
+ --x-size-padding-top-facet-header-card: var(--x-size-padding-facet-header-card);
7566
+ --x-size-padding-right-facet-header-card: var(--x-size-padding-facet-header-card);
7567
+ --x-size-padding-bottom-facet-header-card: var(--x-size-padding-facet-header-card);
7568
+ --x-size-padding-left-facet-header-card: var(--x-size-padding-facet-header-card);
7569
+ }
@@ -24,7 +24,6 @@ function createRelatedTags(tags, query) {
24
24
  */
25
25
  const setUrlParams = ({ commit }, { query, tag }) => {
26
26
  commit('setSelectedRelatedTags', createRelatedTags(tag, query));
27
- commit('setRelatedTags', []);
28
27
  commit('setQuery', query);
29
28
  };
30
29
 
@@ -1 +1 @@
1
- {"version":3,"file":"set-url-params.action.js","sources":["../../../../../../src/x-modules/related-tags/store/actions/set-url-params.action.ts"],"sourcesContent":["import { RelatedTag } from '@empathyco/x-types';\nimport { UrlParams } from '../../../../types/url-params';\nimport { RelatedTagsXStoreModule } from '../types';\n\n/**\n * Helper method which creates the {@link RelatedTag} entity from the string array `tag` of the url.\n *\n * @param tags - List of tags from the url.\n * @param query - Query from the url.\n *\n * @returns A list of {@link RelatedTag | related tags}.\n */\nfunction createRelatedTags(tags: string[], query: string): RelatedTag[] {\n return tags.map(tag => ({\n tag,\n modelName: 'RelatedTag',\n query: query ? `${query} ${tag}` : ''\n }));\n}\n\n/**\n * Default implementation for the {@link RelatedTagsActions.setUrlParams}.\n *\n * @param context - The {@link https://vuex.vuejs.org/guide/actions.html | context} of the actions,\n * provided by Vuex.\n * @param urlParams - The url params from the url.\n *\n * @public\n */\nexport const setUrlParams: RelatedTagsXStoreModule['actions']['setUrlParams'] = (\n { commit },\n { query, tag }: UrlParams\n) => {\n commit('setSelectedRelatedTags', createRelatedTags(tag, query));\n commit('setRelatedTags', []);\n commit('setQuery', query);\n};\n"],"names":[],"mappings":"AAIA;;;;;;;;AAQA,SAAS,iBAAiB,CAAC,IAAc,EAAE,KAAa;IACtD,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK;QACtB,GAAG;QACH,SAAS,EAAE,YAAY;QACvB,KAAK,EAAE,KAAK,GAAG,GAAG,KAAK,IAAI,GAAG,EAAE,GAAG,EAAE;KACtC,CAAC,CAAC,CAAC;AACN,CAAC;AAED;;;;;;;;;MASa,YAAY,GAAuD,CAC9E,EAAE,MAAM,EAAE,EACV,EAAE,KAAK,EAAE,GAAG,EAAa;IAEzB,MAAM,CAAC,wBAAwB,EAAE,iBAAiB,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;IAChE,MAAM,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;IAC7B,MAAM,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;AAC5B;;;;"}
1
+ {"version":3,"file":"set-url-params.action.js","sources":["../../../../../../src/x-modules/related-tags/store/actions/set-url-params.action.ts"],"sourcesContent":["import { RelatedTag } from '@empathyco/x-types';\nimport { UrlParams } from '../../../../types/url-params';\nimport { RelatedTagsXStoreModule } from '../types';\n\n/**\n * Helper method which creates the {@link RelatedTag} entity from the string array `tag` of the url.\n *\n * @param tags - List of tags from the url.\n * @param query - Query from the url.\n *\n * @returns A list of {@link RelatedTag | related tags}.\n */\nfunction createRelatedTags(tags: string[], query: string): RelatedTag[] {\n return tags.map(tag => ({\n tag,\n modelName: 'RelatedTag',\n query: query ? `${query} ${tag}` : ''\n }));\n}\n\n/**\n * Default implementation for the {@link RelatedTagsActions.setUrlParams}.\n *\n * @param context - The {@link https://vuex.vuejs.org/guide/actions.html | context} of the actions,\n * provided by Vuex.\n * @param urlParams - The url params from the url.\n *\n * @public\n */\nexport const setUrlParams: RelatedTagsXStoreModule['actions']['setUrlParams'] = (\n { commit },\n { query, tag }: UrlParams\n) => {\n commit('setSelectedRelatedTags', createRelatedTags(tag, query));\n commit('setQuery', query);\n};\n"],"names":[],"mappings":"AAIA;;;;;;;;AAQA,SAAS,iBAAiB,CAAC,IAAc,EAAE,KAAa;IACtD,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK;QACtB,GAAG;QACH,SAAS,EAAE,YAAY;QACvB,KAAK,EAAE,KAAK,GAAG,GAAG,KAAK,IAAI,GAAG,EAAE,GAAG,EAAE;KACtC,CAAC,CAAC,CAAC;AACN,CAAC;AAED;;;;;;;;;MASa,YAAY,GAAuD,CAC9E,EAAE,MAAM,EAAE,EACV,EAAE,KAAK,EAAE,GAAG,EAAa;IAEzB,MAAM,CAAC,wBAAwB,EAAE,iBAAiB,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;IAChE,MAAM,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;AAC5B;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empathyco/x-components",
3
- "version": "3.0.0-alpha.100",
3
+ "version": "3.0.0-alpha.101",
4
4
  "description": "Empathy X Components",
5
5
  "author": "Empathy Systems Corporation S.L.",
6
6
  "license": "Apache-2.0",
@@ -125,5 +125,5 @@
125
125
  "access": "public",
126
126
  "directory": "dist"
127
127
  },
128
- "gitHead": "1635cec27b3e59402904dd9d677dad746f729dc8"
128
+ "gitHead": "a646dd628ea9da9ad84d4c1a1b840a93ab959c13"
129
129
  }
@@ -1 +1 @@
1
- {"version":3,"file":"set-url-params.action.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/related-tags/store/actions/set-url-params.action.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAkBnD;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAC,cAAc,CAO3E,CAAC"}
1
+ {"version":3,"file":"set-url-params.action.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/related-tags/store/actions/set-url-params.action.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAkBnD;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAC,cAAc,CAM3E,CAAC"}