@progressive-development/pd-forms 0.2.1 → 0.2.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.2.1",
6
+ "version": "0.2.3",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
@@ -62,6 +62,10 @@ export class PdBaseInputElement extends PdBaseUIInput {
62
62
  this._input = this.shadowRoot.querySelector(this._getElementName());
63
63
  }
64
64
 
65
+ focus() {
66
+ this._input.focus();
67
+ }
68
+
65
69
  _onBlur(event) {
66
70
  this.dispatchEvent(
67
71
  new CustomEvent('focus-lost', {
@@ -91,7 +95,7 @@ export class PdBaseInputElement extends PdBaseUIInput {
91
95
  case INPUT_TYPE_TEXT:
92
96
  return 'input';
93
97
  case INPUT_TYPE_DATE:
94
- return 'vaadin-date-picker';
98
+ return 'pd-input';
95
99
  default:
96
100
  return '';
97
101
  }