@progressive-development/pd-forms 0.2.10 → 0.2.11
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 +1 -1
- package/src/PdInputFile.js +6 -1
- package/src/shared-input-styles.js +1 -0
package/package.json
CHANGED
package/src/PdInputFile.js
CHANGED
|
@@ -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
|
/**
|