@design.estate/dees-catalog 1.0.176 → 1.0.178

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@design.estate/dees-catalog",
3
- "version": "1.0.176",
3
+ "version": "1.0.178",
4
4
  "private": false,
5
5
  "description": "website for lossless.com",
6
6
  "main": "dist_ts_web/index.js",
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@design.estate/dees-catalog',
6
- version: '1.0.176',
6
+ version: '1.0.178',
7
7
  description: 'website for lossless.com'
8
8
  }
@@ -104,6 +104,9 @@ export class DeesForm extends DeesElement {
104
104
  const children = this.getFormElements();
105
105
  const valueObject: { [key: string]: string | number | boolean } = {};
106
106
  for (const child of children) {
107
+ if (!child.key) {
108
+ console.log(`form element with label "${child.label}" has no key. skipping.`);
109
+ }
107
110
  valueObject[child.key] = child.value;
108
111
  }
109
112
  return valueObject;
@@ -26,6 +26,7 @@ export class DeesInputCheckbox extends DeesElement {
26
26
 
27
27
  @property({
28
28
  type: String,
29
+ reflect: true,
29
30
  })
30
31
  public key: string;
31
32
 
@@ -22,7 +22,10 @@ export class DeesInputDropdown extends DeesElement {
22
22
  // INSTANCE
23
23
  public changeSubject = new domtools.rxjs.Subject();
24
24
 
25
- @property()
25
+ @property({
26
+ type: String,
27
+ reflect: true,
28
+ })
26
29
  public label: string = 'Label';
27
30
 
28
31
  @property()
@@ -32,6 +32,7 @@ export class DeesInputFileupload extends DeesElement {
32
32
 
33
33
  @property({
34
34
  type: String,
35
+ reflect: true,
35
36
  })
36
37
  public key: string;
37
38
 
@@ -15,6 +15,12 @@ export class DeesInputQuantitySelector extends DeesElement {
15
15
  public changeSubject = new domtools.rxjs.Subject();
16
16
 
17
17
  @property()
18
+ public label: string = 'Label';
19
+
20
+ @property({
21
+ type: String,
22
+ reflect: true,
23
+ })
18
24
  public key: string;
19
25
 
20
26
  @property({
@@ -14,7 +14,10 @@ export class DeesInputRadio extends DeesElement {
14
14
  // INSTANCE
15
15
  public changeSubject = new domtools.rxjs.Subject();
16
16
 
17
- @property()
17
+ @property({
18
+ type: String,
19
+ reflect: true,
20
+ })
18
21
  public key: string;
19
22
 
20
23
  @property()
@@ -24,7 +24,8 @@ export class DeesInputText extends DeesElement {
24
24
  public label: string;
25
25
 
26
26
  @property({
27
- type: String
27
+ type: String,
28
+ reflect: true,
28
29
  })
29
30
  public key: string;
30
31
 
@@ -61,8 +61,8 @@ export class DeesSimpleLogin extends DeesElement {
61
61
  <div class="login">
62
62
  <dees-form>
63
63
  <div class="header">Login to ${this.title}</div>
64
- <dees-input-text label="username" required></dees-input-text>
65
- <dees-input-text label="password" isPasswordBool required></dees-input-text>
64
+ <dees-input-text key="username" label="username" required></dees-input-text>
65
+ <dees-input-text key="password" label="password" isPasswordBool required></dees-input-text>
66
66
  <dees-form-submit disabled>login</dees-form-submit>
67
67
  </dees-form>
68
68
  </div>