fix(core): update
This commit is contained in:
parent
7b3793e943
commit
9cd28fa819
@ -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'
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -26,6 +26,7 @@ export class DeesInputCheckbox extends DeesElement {
|
||||
|
||||
@property({
|
||||
type: String,
|
||||
reflect: true,
|
||||
})
|
||||
public key: string;
|
||||
|
||||
|
@ -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()
|
||||
|
@ -32,6 +32,7 @@ export class DeesInputFileupload extends DeesElement {
|
||||
|
||||
@property({
|
||||
type: String,
|
||||
reflect: true,
|
||||
})
|
||||
public key: string;
|
||||
|
||||
|
@ -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({
|
||||
|
@ -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()
|
||||
|
@ -24,7 +24,8 @@ export class DeesInputText extends DeesElement {
|
||||
public label: string;
|
||||
|
||||
@property({
|
||||
type: String
|
||||
type: String,
|
||||
reflect: true,
|
||||
})
|
||||
public key: string;
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user