fix(core): update

This commit is contained in:
2023-11-28 20:44:45 +01:00
parent 68164f4d9e
commit 247a401982
9 changed files with 98 additions and 11 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@signature.digital_private/catalog',
version: '1.0.57',
version: '1.0.58',
description: 'a catalog containing components for e-signing'
}

View File

@ -1,4 +1,14 @@
import { DeesElement, property, html, customElement, type TemplateResult, css, cssManager } from '@design.estate/dees-element';
import {
DeesElement,
property,
html,
customElement,
type TemplateResult,
css,
cssManager,
domtools,
} from '@design.estate/dees-element';
import * as tsIso from '../../ts_iso/index.js';
import * as plugins from '../plugins.js';
declare global {
@ -7,5 +17,26 @@ declare global {
}
}
@customElement('sdig-signbox')
export class ContractEditor extends DeesElement {}
@customElement('sdig-contracteditor')
export class ContractEditor extends DeesElement {
public static demo = () => html` <sdig-contracteditor
.contract=${tsIso.demoContract}
></sdig-contracteditor> `;
// INSTANCE
public localStateInstance = new domtools.plugins.smartstate.Smartstate();
public contractState =
this.localStateInstance.getStatePart<plugins.portablecontract.IPortableContract>('contract');
@property({ type: Object })
public contract: plugins.portablecontract.IPortableContract;
public async firstUpdated(_changedProperties: Map<string | number | symbol, unknown>) {
super.firstUpdated(_changedProperties);
}
public render(): TemplateResult {
return html` <div class="mainbox"></div> `;
}
}

View File

View File

@ -26,13 +26,14 @@ export class SignPad extends DeesElement {
color: white;
position: relative;
max-width: 600px;
min-height: 200px;
min-height: 280px;
max-height: 400px;
}
.mainbox {
position: relative;
min-height: 280px;
width: 600px;
height: 280px;
}
.signline {