@progressive-development/pd-forms 0.2.10 → 0.2.12

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.2.10",
6
+ "version": "0.2.12",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
package/src/PdFormRow.js CHANGED
@@ -26,8 +26,7 @@ export class PdFormRow extends PdBaseUI {
26
26
  flex: 1 1 100%;
27
27
  /*margin: 0 0 .5rem 0;*/
28
28
  box-sizing: border-box;
29
- min-width: var(--my-row-width);
30
- max-width: 100%;
29
+ width: 100%;
31
30
  gap: var(--my-gap);
32
31
  align-items: var(--pd-form-row-align-item, flex-start);
33
32
  padding-top: var(--pd-form-row-padding-top, 10px);
@@ -93,7 +93,7 @@ export class PdInputFile extends PdBaseInputElement {
93
93
  ?disabled="${this.disabled}"
94
94
  @keyup="${this._onKeyUp}"
95
95
  @blur="${this._onBlur}"
96
-
96
+ @change="${this._onChange}"
97
97
  />
98
98
  </div>
99
99
  ${this._renderErrorMsg()}
@@ -108,6 +108,11 @@ export class PdInputFile extends PdBaseInputElement {
108
108
  this.dispatchEvent(new CustomEvent("input-icon-click"))
109
109
  }
110
110
 
111
+ _onChange(e) {
112
+ // TODO
113
+ this.dispatchEvent(new CustomEvent("file-change"))
114
+ }
115
+
111
116
  get files() {
112
117
  const el = this.shadowRoot.getElementById(`${this.id}Input`);
113
118
  return el ? el.files : undefined;
@@ -22,6 +22,7 @@ export const SharedInputStyles = css`
22
22
  text-align: var(--pd-input-label-align, left);
23
23
  font-size: var(--pd-input-lable-font-size, 0.9em);
24
24
  font-family: var(--pd-input-lable-font-family, var(--pd-default-font-title-family));
25
+ max-width: var(--pd-input-field-width, 250px);
25
26
  }
26
27
 
27
28
  /**