fix(core): update

This commit is contained in:
Philipp Kunz 2023-08-28 09:49:51 +02:00
parent 7b3793e943
commit 9cd28fa819
9 changed files with 24 additions and 6 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@design.estate/dees-catalog',
version: '1.0.177',
version: '1.0.178',
description: 'website for lossless.com'
}

View File

@ -104,6 +104,9 @@ export class DeesForm extends DeesElement {
const children = this.getFormElements();
const valueObject: { [key: string]: string | number | boolean } = {};
for (const child of children) {
if (!child.key) {
console.log(`form element with label "${child.label}" has no key. skipping.`);
}
valueObject[child.key] = child.value;
}
return valueObject;

View File

@ -26,6 +26,7 @@ export class DeesInputCheckbox extends DeesElement {
@property({
type: String,
reflect: true,
})
public key: string;

View File

@ -22,7 +22,10 @@ export class DeesInputDropdown extends DeesElement {
// INSTANCE
public changeSubject = new domtools.rxjs.Subject();
@property()
@property({
type: String,
reflect: true,
})
public label: string = 'Label';
@property()

View File

@ -32,6 +32,7 @@ export class DeesInputFileupload extends DeesElement {
@property({
type: String,
reflect: true,
})
public key: string;

View File

@ -15,6 +15,12 @@ export class DeesInputQuantitySelector extends DeesElement {
public changeSubject = new domtools.rxjs.Subject();
@property()
public label: string = 'Label';
@property({
type: String,
reflect: true,
})
public key: string;
@property({

View File

@ -14,7 +14,10 @@ export class DeesInputRadio extends DeesElement {
// INSTANCE
public changeSubject = new domtools.rxjs.Subject();
@property()
@property({
type: String,
reflect: true,
})
public key: string;
@property()

View File

@ -24,7 +24,8 @@ export class DeesInputText extends DeesElement {
public label: string;
@property({
type: String
type: String,
reflect: true,
})
public key: string;

View File

@ -61,8 +61,8 @@ export class DeesSimpleLogin extends DeesElement {
<div class="login">
<dees-form>
<div class="header">Login to ${this.title}</div>
<dees-input-text label="username" required></dees-input-text>
<dees-input-text label="password" isPasswordBool required></dees-input-text>
<dees-input-text key="username" label="username" required></dees-input-text>
<dees-input-text key="password" label="password" isPasswordBool required></dees-input-text>
<dees-form-submit disabled>login</dees-form-submit>
</dees-form>
</div>