@empathyco/x-components 3.0.0-alpha.205 → 3.0.0-alpha.206
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.206](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.205...@empathyco/x-components@3.0.0-alpha.206) (2022-10-31)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- add `dynamic-props` mixin (#798)
|
|
11
|
+
([defafbb](https://github.com/empathyco/x/commit/defafbb2c40f51e3c44474b469b353472a91a828)),
|
|
12
|
+
closes [EX-7220](https://searchbroker.atlassian.net/browse/EX-7220)
|
|
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.205](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.204...@empathyco/x-components@3.0.0-alpha.205) (2022-10-31)
|
|
7
20
|
|
|
8
21
|
### Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empathyco/x-components",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.206",
|
|
4
4
|
"description": "Empathy X Components",
|
|
5
5
|
"author": "Empathy Systems Corporation S.L.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -136,5 +136,5 @@
|
|
|
136
136
|
"access": "public",
|
|
137
137
|
"directory": "dist"
|
|
138
138
|
},
|
|
139
|
-
"gitHead": "
|
|
139
|
+
"gitHead": "3246033f8eb31a51bcc346984495ee1a8f93e082"
|
|
140
140
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import Vue from 'vue';
|
|
2
|
+
import { ExtendedVue } from 'vue/types/vue';
|
|
3
|
+
/**
|
|
4
|
+
* Mixin that creates a string prop in the component for each element
|
|
5
|
+
* within the array passed as `propNames` argument.
|
|
6
|
+
*
|
|
7
|
+
* @param propNames - Array with the names of the props to create.
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
*
|
|
11
|
+
* @Component({
|
|
12
|
+
* components: { RelatedTag },
|
|
13
|
+
* mixins: [xComponentMixin(relatedTagsXModule)]
|
|
14
|
+
* })
|
|
15
|
+
* export default class RelatedTags extends Mixins(dynamicPropsMixin(['list', 'li', 'tag'])) {
|
|
16
|
+
* // This component will have available 3 props: 'list', 'li' and 'tag'
|
|
17
|
+
* }
|
|
18
|
+
* ```
|
|
19
|
+
* @returns Mixin for the component.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
export declare function dynamicPropsMixin<PropNames extends string>(propNames: PropNames[]): ExtendedVue<Vue, unknown, unknown, unknown, Partial<Record<PropNames, string>>>;
|
|
23
|
+
//# sourceMappingURL=dynamic-props.mixin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dynamic-props.mixin.d.ts","sourceRoot":"","sources":["../../../src/components/dynamic-props.mixin.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,SAAS,MAAM,EACxD,SAAS,EAAE,SAAS,EAAE,GACrB,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,CAOjF"}
|