@progressive-development/pd-contact 0.5.2 → 0.5.4

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.
@@ -49,6 +49,7 @@ const C_LASTNAME = "lastName";
49
49
  const C_STREET = "street";
50
50
  const C_CITY = "city";
51
51
  const C_ADDITIONAL = "additionalHint";
52
+ const C_PROPERTY_DATE = "propertyDate";
52
53
  const C_PHONE1 = "phone1";
53
54
  const C_EMAIL = "email";
54
55
  const yearSelection = [
@@ -366,7 +367,7 @@ class PdContact extends LitElement {
366
367
  label="${msg("Datum der Immobilie", { id: "pd.contact.label.propertyDate" })}"
367
368
  value="${this.contact ? this.contact.propertyDate : ""}"
368
369
  .values="${yearSelection}"
369
- required
370
+ ?required="${this._isRequired(C_PROPERTY_DATE)}"
370
371
  ></pd-select>
371
372
  </pd-form-row>
372
373
  ` : ""}
@@ -658,6 +659,7 @@ export {
658
659
  C_FIRSTNAME,
659
660
  C_LASTNAME,
660
661
  C_PHONE1,
662
+ C_PROPERTY_DATE,
661
663
  C_STREET,
662
664
  C_TYPE,
663
665
  PdContact
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Progressive Development Contact component",
4
4
  "author": "PD Progressive Development",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
- "version": "0.5.2",
6
+ "version": "0.5.4",
7
7
  "main": "./dist/index.js",
8
8
  "module": "./dist/index.js",
9
9
  "exports": {
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@lit/localize": "^0.12.2",
38
- "@progressive-development/pd-forms": "^0.5.0",
38
+ "@progressive-development/pd-forms": "^0.5.1",
39
39
  "@progressive-development/pd-icon": "^0.5.0",
40
40
  "@progressive-development/pd-shared-styles": "^0.1.1",
41
41
  "lit": "^2.8.0"