@progressive-development/pd-contact 0.6.25 → 0.9.1
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/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -10
- package/dist/locales/be.js +4 -4
- package/dist/locales/de.js +4 -4
- package/dist/locales/en.js +4 -4
- package/dist/pd-contact/PdContact.d.ts +63 -0
- package/dist/pd-contact/PdContact.d.ts.map +1 -0
- package/dist/pd-contact/PdContact.js +549 -0
- package/dist/{stories/contact-edit.stories.d.ts → pd-contact/pd-contact-edit.stories.d.ts} +2 -2
- package/dist/pd-contact/pd-contact-edit.stories.d.ts.map +1 -0
- package/dist/{stories/contact-view.stories.d.ts → pd-contact/pd-contact-view.stories.d.ts} +2 -2
- package/dist/pd-contact/pd-contact-view.stories.d.ts.map +1 -0
- package/dist/pd-contact/pd-contact.d.ts +3 -0
- package/dist/pd-contact/pd-contact.d.ts.map +1 -0
- package/dist/pd-contact.d.ts +2 -60
- package/dist/pd-contact.js +6 -558
- package/dist/types.js +2 -14
- package/package.json +26 -46
- package/dist/pd-contact.d.ts.map +0 -1
- package/dist/stories/contact-edit.stories.d.ts.map +0 -1
- package/dist/stories/contact-view.stories.d.ts.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { PdContact } from './pd-contact.js';
|
|
1
|
+
export { PdContact } from './pd-contact/pd-contact.js';
|
|
2
2
|
export type { PdContactData, PdContactFormOptions, PdContactMatch, C_ADDITIONAL, C_BTWNR, C_CITY, C_COMPANY, C_EMAIL, C_FIRSTNAME, C_LASTNAME, C_PHONE1, C_PROPERTY_DATE, C_STREET, C_STREET_NR, C_TYPE, C_ZIP, } from './types.js';
|
|
3
3
|
export { templates as beTemplates } from './generated/locales/be.js';
|
|
4
4
|
export { templates as deTemplates } from './generated/locales/de.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,OAAO,EACP,MAAM,EACN,SAAS,EACT,OAAO,EACP,WAAW,EACX,UAAU,EACV,QAAQ,EACR,eAAe,EACf,QAAQ,EACR,WAAW,EACX,MAAM,EACN,KAAK,GACN,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export {
|
|
6
|
-
PdContact,
|
|
7
|
-
templates as beTemplates,
|
|
8
|
-
templates2 as deTemplates,
|
|
9
|
-
templates3 as enTemplates
|
|
10
|
-
};
|
|
1
|
+
import './pd-contact.js';
|
|
2
|
+
export { templates as beTemplates } from './locales/be.js';
|
|
3
|
+
export { templates as deTemplates } from './locales/de.js';
|
|
4
|
+
export { templates as enTemplates } from './locales/en.js';
|
|
5
|
+
export { PdContact } from './pd-contact/PdContact.js';
|
package/dist/locales/be.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { str } from
|
|
1
|
+
import { str } from '@lit/localize';
|
|
2
|
+
|
|
2
3
|
const templates = {
|
|
3
4
|
"pd.contact.address.title": `Adres`,
|
|
4
5
|
"pd.contact.check.company": `Bedrijf`,
|
|
@@ -19,6 +20,5 @@ const templates = {
|
|
|
19
20
|
"pd.contact.label.zip": `Postcode`,
|
|
20
21
|
"pd.contact.property.year.selection": `Bouwjaar selecteren`
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
23
|
+
|
|
24
|
+
export { templates };
|
package/dist/locales/de.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { str } from
|
|
1
|
+
import { str } from '@lit/localize';
|
|
2
|
+
|
|
2
3
|
const templates = {
|
|
3
4
|
"pd.contact.property.year.selection": `Baujahr auswählen`,
|
|
4
5
|
"pd.contact.address.title": `Adresse`,
|
|
@@ -19,6 +20,5 @@ const templates = {
|
|
|
19
20
|
"pd.contact.label.email": `E-mail`,
|
|
20
21
|
"pd.contact.label.summary.propertyDate": str`Baujahr: ${0}`
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
23
|
+
|
|
24
|
+
export { templates };
|
package/dist/locales/en.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { str } from
|
|
1
|
+
import { str } from '@lit/localize';
|
|
2
|
+
|
|
2
3
|
const templates = {
|
|
3
4
|
"pd.contact.address.title": `Address`,
|
|
4
5
|
"pd.contact.check.company": `Company`,
|
|
@@ -19,6 +20,5 @@ const templates = {
|
|
|
19
20
|
"pd.contact.label.zip": `ZIP Code`,
|
|
20
21
|
"pd.contact.property.year.selection": `Select year of construction`
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
23
|
+
|
|
24
|
+
export { templates };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { LitElement, PropertyValues, CSSResultGroup } from 'lit';
|
|
2
|
+
import { PdContactData, PdContactMatch } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* @tagname pd-contact
|
|
5
|
+
*/
|
|
6
|
+
export declare class PdContact extends LitElement {
|
|
7
|
+
/**
|
|
8
|
+
* Title shown above address block.
|
|
9
|
+
*/
|
|
10
|
+
addressTitle: string;
|
|
11
|
+
/**
|
|
12
|
+
* If true, phone and email are rendered as clickable links with icons.
|
|
13
|
+
*/
|
|
14
|
+
phoneMailLink: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* If true, render only summary view instead of full editable form.
|
|
17
|
+
*/
|
|
18
|
+
summary: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the Baujahr / propertyDate should be shown in the form.
|
|
21
|
+
* TODO: Refactor, give selectable property dates from outside, show if set
|
|
22
|
+
*/
|
|
23
|
+
withPropertyDate: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* List of required input field keys (optional).
|
|
26
|
+
*/
|
|
27
|
+
requiredFields: string[];
|
|
28
|
+
/**
|
|
29
|
+
* List of fields to be rendered (optional).
|
|
30
|
+
*/
|
|
31
|
+
inputFields: string[];
|
|
32
|
+
/**
|
|
33
|
+
* Contact object to show or edit.
|
|
34
|
+
*/
|
|
35
|
+
contact?: PdContactData;
|
|
36
|
+
/**
|
|
37
|
+
* Optional location match data.
|
|
38
|
+
*/
|
|
39
|
+
match?: PdContactMatch;
|
|
40
|
+
/**
|
|
41
|
+
* Business or private contact (internal flag).
|
|
42
|
+
*/
|
|
43
|
+
private _business;
|
|
44
|
+
private _contactForm;
|
|
45
|
+
static styles: CSSResultGroup;
|
|
46
|
+
willUpdate(changedProps: PropertyValues<this>): void;
|
|
47
|
+
render(): import('lit').TemplateResult<1>;
|
|
48
|
+
private _renderEditContact;
|
|
49
|
+
private _getRadioValue;
|
|
50
|
+
private _renderViewContact;
|
|
51
|
+
get valid(): boolean;
|
|
52
|
+
triggerValidate(): Promise<boolean>;
|
|
53
|
+
getValues(): PdContactData;
|
|
54
|
+
private _switchAddressType;
|
|
55
|
+
private _isRequired;
|
|
56
|
+
private _showInput;
|
|
57
|
+
private _setFormData;
|
|
58
|
+
private _getFullName;
|
|
59
|
+
private _getFullStreet;
|
|
60
|
+
private _getFullLocation;
|
|
61
|
+
private static _getFullVal;
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=PdContact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdContact.d.ts","sourceRoot":"","sources":["../../src/pd-contact/PdContact.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAa,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAS5E,OAAO,0CAA0C,CAAC;AAGlD,OAAO,+CAA+C,CAAC;AACvD,OAAO,qDAAqD,CAAC;AAC7D,OAAO,+CAA+C,CAAC;AACvD,OAAO,4CAA4C,CAAC;AACpD,OAAO,6CAA6C,CAAC;AACrD,OAAO,kDAAkD,CAAC;AAE1D,OAAO,EAaL,KAAK,aAAa,EAClB,KAAK,cAAc,EACpB,MAAM,UAAU,CAAC;AAmClB;;GAEG;AACH,qBAAa,SAAU,SAAQ,UAAU;IACvC;;OAEG;IAEH,YAAY,SAAsD;IAElE;;OAEG;IAEH,aAAa,UAAS;IAEtB;;OAEG;IAEH,OAAO,UAAS;IAEhB;;;OAGG;IAEH,gBAAgB,UAAS;IAEzB;;OAEG;IAEH,cAAc,EAAE,MAAM,EAAE,CAAM;IAE9B;;OAEG;IAEH,WAAW,EAAE,MAAM,EAAE,CAAM;IAE3B;;OAEG;IAEH,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB;;OAEG;IAEH,KAAK,CAAC,EAAE,cAAc,CAAC;IAEvB;;OAEG;IAEH,OAAO,CAAC,SAAS,CAAS;IAG1B,OAAO,CAAC,YAAY,CAAmB;IAEvC,OAAgB,MAAM,EAAE,cAAc,CAsEpC;IAEO,UAAU,CAAC,YAAY,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAMpD,MAAM;IAQf,OAAO,CAAC,kBAAkB;IAiP1B,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,kBAAkB;IAiF1B,IAAI,KAAK,YAER;IAEY,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC;IAIzC,SAAS,IAAI,aAAa;IAiCjC,OAAO,CAAC,kBAAkB;IAQ1B,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,UAAU;IAMlB,OAAO,CAAC,YAAY;IAsBpB,OAAO,CAAC,YAAY;IAOpB,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,MAAM,CAAC,WAAW;CAG3B"}
|