@progressive-development/pd-forms 0.1.1 → 0.1.3

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
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent pd-forms following open-wc recommendations",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "author": "PD Progressive Development",
6
- "version": "0.1.1",
6
+ "version": "0.1.3",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@lit-labs/motion": "^1.0.2",
23
23
  "@lit/localize": "^0.11.2",
24
- "@progressive-development/pd-icon": "^0.1.6",
24
+ "@progressive-development/pd-icon": "^0.1.7",
25
25
  "lit": "^2.2.0"
26
26
  },
27
27
  "devDependencies": {
package/src/PdButton.js CHANGED
@@ -1,3 +1,4 @@
1
+ /* eslint-disable lit-a11y/click-events-have-key-events */
1
2
  /* eslint-disable lit-a11y/anchor-is-valid */
2
3
  /**
3
4
  * @license
@@ -40,6 +41,7 @@ export class PdButton extends PdBaseUI {
40
41
  box-shadow: var(--pd-button-box-shadow, -1px 1px 2px var(--pd-default-dark-col));
41
42
 
42
43
  margin: 0.5rem;
44
+ margin-left: 0; /* Um gleich zum input field zu sein */
43
45
 
44
46
  /*
45
47
  height: 100%;
@@ -171,7 +173,7 @@ export class PdButton extends PdBaseUI {
171
173
 
172
174
  render() {
173
175
  return html`
174
- <div @onClick="${this._handleClick}">
176
+ <div @click="${this._handleClick}">
175
177
  <a ?disabled="${this.disabled}">${this.text}</a>
176
178
  </div>`;
177
179
  }
package/src/PdCheckbox.js CHANGED
@@ -119,7 +119,7 @@ export class PdCheckbox extends PdBaseUIInput {
119
119
  .checkbox pd-icon {
120
120
  margin-right: .2rem;
121
121
  margin-bottom: .2rem;
122
- border: 2px solid var(--pd-cb-border-col, var(--pd-default-col));;
122
+ border: 2px solid var(--pd-cb-border-col, var(--pd-default-col));
123
123
  border-radius: var(--pd-cb-border-radius, 3px);
124
124
  }
125
125
 
@@ -141,7 +141,7 @@ export class PdFormContainer extends PdBaseUI {
141
141
  msg("Format +49123 123456 verwenden",{desc: '#pd.form.field.invalid.phone#'}));
142
142
  validateByType("vat", PdFormContainer._vatIsValid,
143
143
  msg("Format DE0123456789 verwenden",{desc: '#pd.form.field.invalid.vat#'}));
144
- validateByType("number", (val) => !Number.isNaN(val),
144
+ validateByType("number", (val) => !isNaN(val),
145
145
  msg("Nur Zahlen erlaubt",{desc: '#pd.form.field.invalid.number#'}));
146
146
 
147
147
  if (e.detail.singleElement) {
package/src/PdInput.js CHANGED
@@ -85,7 +85,7 @@ export class PdInput extends PdBaseInputElement {
85
85
  <div class="input ${this.errorMsg.length > 0 ? 'error' : ''}">
86
86
  <input
87
87
  id="${inputId}"
88
- name="${this.autoCompleteName}"
88
+ name="${this.namne || this.valueName || this.autoCompleteName}"
89
89
  autocomplete=${this.autoCompleteName}
90
90
  class="input-style ${this.gradient ? 'gradient' : ''}"
91
91
  type="${this.secret ? 'password' : 'text'}"
@@ -84,7 +84,7 @@ export class PdInputArea extends PdBaseInputElement {
84
84
  <div class="input ${this.errorMsg.length > 0 ? 'error' : ''}">
85
85
  <textarea
86
86
  id="${inputAreaId}"
87
- name="${this.autoCompleteName}"
87
+ name="${this.namne || this.valueName || this.autoCompleteName}"
88
88
  autocomplete=${this.autoCompleteName}
89
89
  class="input-style ${this.gradient ? 'gradient' : ''}"
90
90
  rows="${this.rows}"
@@ -27,6 +27,10 @@ export class PdRadioGroup extends PdBaseUIInput {
27
27
  flex-direction: var(--pd-cb-group-direction, row);
28
28
  }
29
29
 
30
+ ::slotted(pd-checkbox) {
31
+ --pd-cb-border-col-readonly: var(--pd-cb-border-col, var(--pd-default-col));
32
+ }
33
+
30
34
  `];
31
35
  }
32
36
 
package/src/PdSelect.js CHANGED
@@ -138,7 +138,7 @@ export class PdSelect extends PdBaseInputElement {
138
138
  id="${selectId}"
139
139
  class="input-style select-css ${this.gradient ? 'gradient' : ''}"
140
140
  ?disabled="${this.disabled}"
141
- name="${this.autoCompleteName}"
141
+ name="${this.namne || this.valueName || this.autoCompleteName}"
142
142
  autocomplete=${this.autoCompleteName}
143
143
  @change="${this._onKeyUp}"
144
144
  @keyup="${this._onSelectKeyUp}"
@@ -31,12 +31,13 @@ export const SharedGlobalStyles = css`
31
31
  --pd-default-dark-col: var(--app-primary-dark-col, #0A3A48);
32
32
  --pd-default-bg-color: var(--app-primary-bg-col, #fefefe);
33
33
 
34
- --pd-default-hover-col: var(--app-hover-col, #E1E03D);
34
+ --pd-default-hover-col: var(--app-hover-col, #f3d7a0);
35
35
  --pd-default-error-col: var(--app-error-col, #cc2029);
36
36
  --pd-default-error-light-col: var(--app-error-light-col, #ffe8e8);
37
37
  --pd-default-success-col: var(--app-success-col, #42a01c);
38
38
  --pd-default-success-light-col: var(--app-success-light-col, #f5ffe8);
39
- --pd-default-disabled-col: #888585;
39
+ --pd-default-disabled-col: var(--app-disabled-col, #888585);
40
+ --pd-default-disabled-light-col: var(--app-disabled-light-col, lightgrey);
40
41
  }
41
42
 
42
43
  `;