fix(core): update
This commit is contained in:
		
							
								
								
									
										8
									
								
								ts_web/00_commitinfo_data.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								ts_web/00_commitinfo_data.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
/**
 | 
			
		||||
 * autocreated commitinfo by @pushrocks/commitinfo
 | 
			
		||||
 */
 | 
			
		||||
export const commitinfo = {
 | 
			
		||||
  name: '@signature.digital_private/catalog',
 | 
			
		||||
  version: '1.0.56',
 | 
			
		||||
  description: 'a catalog containing components for e-signing'
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										47
									
								
								ts_web/elements/first-element.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										47
									
								
								ts_web/elements/first-element.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,47 @@
 | 
			
		||||
import { DeesElement, property, html, customElement, TemplateResult, css, cssManager } from '@designestate/dees-element';
 | 
			
		||||
import * as domtools from '@designestate/dees-domtools';
 | 
			
		||||
 | 
			
		||||
declare global {
 | 
			
		||||
  interface HTMLElementTagNameMap {
 | 
			
		||||
    'first-element': FirstElement;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@customElement('first-element')
 | 
			
		||||
export class FirstElement extends DeesElement {
 | 
			
		||||
  public static demo = () => html`
 | 
			
		||||
    <first-element .aProp="${'test'}"></first-element>
 | 
			
		||||
  `;
 | 
			
		||||
 | 
			
		||||
  @property({
 | 
			
		||||
    type: String
 | 
			
		||||
  })
 | 
			
		||||
  public aProp: string = 'loading...';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  constructor() {
 | 
			
		||||
    super();
 | 
			
		||||
    domtools.DomTools.setupDomTools();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  public static styles = [
 | 
			
		||||
    domtools.elementBasic.staticStyles,
 | 
			
		||||
    css`
 | 
			
		||||
      :host {
 | 
			
		||||
        display: block;
 | 
			
		||||
        background: blue;
 | 
			
		||||
        color: white;
 | 
			
		||||
        padding: 10px;
 | 
			
		||||
        text-align: center;
 | 
			
		||||
      }
 | 
			
		||||
    `
 | 
			
		||||
  ]
 | 
			
		||||
 | 
			
		||||
  public render(): TemplateResult {
 | 
			
		||||
    return html`
 | 
			
		||||
      <div class="mainbox">
 | 
			
		||||
        ${this.aProp}
 | 
			
		||||
      </div>
 | 
			
		||||
    `;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										1
									
								
								ts_web/elements/index.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								ts_web/elements/index.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
export * from './first-element.js';
 | 
			
		||||
							
								
								
									
										1
									
								
								ts_web/index.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								ts_web/index.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
export * from './elements/index.js';
 | 
			
		||||
		Reference in New Issue
	
	Block a user