4242 ],
4343 "description" : " New LitElement subclass with lit-html"
4444 },
45-
46- "Create @conectate/ct-lit Component" : {
45+ "Create @conectate/components/ct-lit Component" : {
4746 "prefix" : " ctlittemplate" ,
4847 "body" : [
49- " import { CtLit, html, css, customElement, property, state } from \" @conectate/ct-lit\" ;" ,
50- " " ,
51- " @customElement(\" ${TM_FILENAME_BASE}\" )" ,
52- " export class ${TM_FILENAME_BASE/([a-z]*)(-)?/${1:/capitalize}/g} extends CtLit {" ,
53- " \t static styles = [" ,
54- " \t\t css`" ,
55- " \t\t\t :host {" ,
56- " \t\t\t\t display: block;" ,
57- " \t\t\t }" ,
58- " \t\t `" ,
59- " \t ];" ,
60- " " ,
61- " \t render() {" ,
62- " \t\t return html`${0}`;" ,
63- " \t }" ,
64- " }" ,
48+ " import { LitElement, html, css, customElement, property, state } from \" @conectate/components/ct-lit\" ;" ,
49+ " " ,
50+ " @customElement(\" ${TM_FILENAME_BASE}\" )" ,
51+ " export class ${TM_FILENAME_BASE/([a-z]*)(-)?/${1:/capitalize}/g} extends LitElement {" ,
52+ " \t static styles = [" ,
53+ " \t\t css`" ,
54+ " \t\t\t :host {" ,
55+ " \t\t\t\t display: block;" ,
56+ " \t\t\t }" ,
57+ " \t\t `" ,
58+ " \t ];" ,
59+ " " ,
60+ " @property({ type: String }) public text = \"\" ;" ,
61+ " @state() private _private = \"\" ;" ,
62+ " " ,
63+ " \t render() {" ,
64+ " \t\t return html`${0}`;" ,
65+ " \t }" ,
66+ " }" ,
6567 " " ,
6668 " declare global {" ,
6769 " \t interface HTMLElementTagNameMap {" ,
6870 " \t\t\" ${TM_FILENAME_BASE}\" : ${TM_FILENAME_BASE/([a-z]*)(-)?/${1:/capitalize}/g};" ,
6971 " \t }" ,
7072 " }"
71- ],
73+ ],
7274 "description" : " New CtLit subclass"
7375 },
7476 "Generate LitElement Property" : {
119121 ],
120122 "description" : " Generate attributeChangedCallback(): Invoked when component attribute changes."
121123 }
122- }
124+ }
0 commit comments