UNPKG

radh-ui

Version:

Stencil Component Starter

87 lines (86 loc) 2.38 kB
import { Component, Event, h, Host, Method, Prop, State } from '@stencil/core'; export class CjsChild { constructor() { this.paga = 0; } async setPaga(money) { this.paga = this.paga + money; } componentDidLoad() { this.reply.emit('Noooooooooooooo'); } render() { return (h(Host, null, h("p", null, "Money: ", this.paga), h("p", null, this.messageFromFather))); } static get is() { return "cjs-child"; } static get encapsulation() { return "shadow"; } static get originalStyleUrls() { return { "$": ["cjs-child.css"] }; } static get styleUrls() { return { "$": ["cjs-child.css"] }; } static get properties() { return { "messageFromFather": { "type": "string", "mutable": false, "complexType": { "original": "string", "resolved": "string", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "" }, "attribute": "message-from-father", "reflect": false } }; } static get states() { return { "paga": {} }; } static get events() { return [{ "method": "reply", "name": "reply", "bubbles": true, "cancelable": true, "composed": true, "docs": { "tags": [], "text": "" }, "complexType": { "original": "any", "resolved": "any", "references": {} } }]; } static get methods() { return { "setPaga": { "complexType": { "signature": "(money: number) => Promise<void>", "parameters": [{ "tags": [], "text": "" }], "references": { "Promise": { "location": "global" } }, "return": "Promise<void>" }, "docs": { "text": "", "tags": [] } } }; } }