@stencil/angular-output-target 0.4.0-0 → 0.4.0
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.
|
@@ -43,9 +43,9 @@ export const defineCustomElement = (tagName: string, customElement: any) => {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
// tslint:disable-next-line: only-arrow-functions
|
|
46
|
-
export function ProxyCmp(opts: {
|
|
46
|
+
export function ProxyCmp(opts: { defineCustomElementFn?: () => void, inputs?: any; methods?: any }) {
|
|
47
47
|
const decorator = function (cls: any) {
|
|
48
|
-
const {
|
|
48
|
+
const { defineCustomElementFn, inputs, methods } = opts;
|
|
49
49
|
|
|
50
50
|
if (defineCustomElementFn !== undefined) {
|
|
51
51
|
defineCustomElementFn();
|
|
@@ -91,8 +91,7 @@ function getProxyCmp(tagName, includeCustomElement, inputs, methods) {
|
|
|
91
91
|
const hasInputs = inputs.length > 0;
|
|
92
92
|
const hasMethods = methods.length > 0;
|
|
93
93
|
const proxMeta = [
|
|
94
|
-
`
|
|
95
|
-
`customElement: ${includeCustomElement ? 'define' + dashToPascalCase(tagName) : 'undefined'}`
|
|
94
|
+
`defineCustomElementFn: ${includeCustomElement ? 'define' + dashToPascalCase(tagName) : 'undefined'}`
|
|
96
95
|
];
|
|
97
96
|
if (hasInputs)
|
|
98
97
|
proxMeta.push(`inputs: ['${inputs.join(`', '`)}']`);
|
package/dist/index.cjs.js
CHANGED
|
@@ -177,8 +177,7 @@ function getProxyCmp(tagName, includeCustomElement, inputs, methods) {
|
|
|
177
177
|
const hasInputs = inputs.length > 0;
|
|
178
178
|
const hasMethods = methods.length > 0;
|
|
179
179
|
const proxMeta = [
|
|
180
|
-
`
|
|
181
|
-
`customElement: ${includeCustomElement ? 'define' + dashToPascalCase(tagName) : 'undefined'}`
|
|
180
|
+
`defineCustomElementFn: ${includeCustomElement ? 'define' + dashToPascalCase(tagName) : 'undefined'}`
|
|
182
181
|
];
|
|
183
182
|
if (hasInputs)
|
|
184
183
|
proxMeta.push(`inputs: ['${inputs.join(`', '`)}']`);
|
package/dist/index.js
CHANGED
|
@@ -169,8 +169,7 @@ function getProxyCmp(tagName, includeCustomElement, inputs, methods) {
|
|
|
169
169
|
const hasInputs = inputs.length > 0;
|
|
170
170
|
const hasMethods = methods.length > 0;
|
|
171
171
|
const proxMeta = [
|
|
172
|
-
`
|
|
173
|
-
`customElement: ${includeCustomElement ? 'define' + dashToPascalCase(tagName) : 'undefined'}`
|
|
172
|
+
`defineCustomElementFn: ${includeCustomElement ? 'define' + dashToPascalCase(tagName) : 'undefined'}`
|
|
174
173
|
];
|
|
175
174
|
if (hasInputs)
|
|
176
175
|
proxMeta.push(`inputs: ['${inputs.join(`', '`)}']`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/angular-output-target",
|
|
3
|
-
"version": "0.4.0
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Angular output target for @stencil/core components.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -37,6 +37,9 @@
|
|
|
37
37
|
"@angular/core": "8.2.14",
|
|
38
38
|
"@angular/forms": "8.2.14"
|
|
39
39
|
},
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"@stencil/core": "^2.9.0"
|
|
42
|
+
},
|
|
40
43
|
"jest": {
|
|
41
44
|
"transform": {
|
|
42
45
|
"^.+\\.(js|ts|tsx)$": "<rootDir>/test/jest.preprocessor.js"
|