@stencil/angular-output-target 0.4.0-1 → 0.4.0-2
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,7 +91,6 @@ 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
|
-
`tagName: \'${tagName}\'`,
|
|
95
94
|
`customElement: ${includeCustomElement ? 'define' + dashToPascalCase(tagName) : 'undefined'}`
|
|
96
95
|
];
|
|
97
96
|
if (hasInputs)
|
package/dist/index.cjs.js
CHANGED
|
@@ -177,7 +177,6 @@ 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
|
-
`tagName: \'${tagName}\'`,
|
|
181
180
|
`customElement: ${includeCustomElement ? 'define' + dashToPascalCase(tagName) : 'undefined'}`
|
|
182
181
|
];
|
|
183
182
|
if (hasInputs)
|
package/dist/index.js
CHANGED
|
@@ -169,7 +169,6 @@ 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
|
-
`tagName: \'${tagName}\'`,
|
|
173
172
|
`customElement: ${includeCustomElement ? 'define' + dashToPascalCase(tagName) : 'undefined'}`
|
|
174
173
|
];
|
|
175
174
|
if (hasInputs)
|