@quandis/qbo4.ui-bridge 4.0.1-CI-20240919-212538
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 +59 -0
- package/src/Program.d.ts +9 -0
- package/src/Program.js +9 -0
- package/src/Program.ts +10 -0
- package/src/qbo-badge.d.ts +32 -0
- package/src/qbo-badge.js +93 -0
- package/src/qbo-badge.js.map +1 -0
- package/src/qbo-badge.ts +79 -0
- package/src/qbo-breadcrumb.d.ts +23 -0
- package/src/qbo-breadcrumb.js +132 -0
- package/src/qbo-breadcrumb.ts +96 -0
- package/src/qbo-contact-name.d.ts +22 -0
- package/src/qbo-contact-name.js +139 -0
- package/src/qbo-contact-name.ts +97 -0
- package/src/qbo-contact.d.ts +21 -0
- package/src/qbo-contact.js +250 -0
- package/src/qbo-contact.ts +211 -0
- package/src/qbo-mainmenu.d.ts +41 -0
- package/src/qbo-mainmenu.js +314 -0
- package/src/qbo-mainmenu.ts +270 -0
- package/src/qbo-sidebar.d.ts +10 -0
- package/src/qbo-sidebar.js +65 -0
- package/src/qbo-sidebar.ts +41 -0
- package/src/qbo-ssn.d.ts +26 -0
- package/src/qbo-ssn.js +174 -0
- package/src/qbo-ssn.ts +132 -0
- package/src/styles.d.ts +3 -0
- package/src/styles.js +27 -0
- package/src/styles.ts +30 -0
- package/wwwroot/js/qbo4.ui-bridge.js +75902 -0
- package/wwwroot/js/qbo4.ui-bridge.min.js +432 -0
- package/wwwroot/js/qbo4.ui-bridge.min.js.LICENSE.txt +49 -0
- package/wwwroot/js/qbo4.ui-bridge.min.js.map +1 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { html } from 'lit';
|
|
11
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
12
|
+
import { QboFormElement } from '@quandis/qbo4.ui';
|
|
13
|
+
const contactNameMap = new Map();
|
|
14
|
+
contactNameMap.set('defaultLayout', (component) => {
|
|
15
|
+
return html `<div slot="content" class="${component.slotClass}">
|
|
16
|
+
<input type="text" ?disabled=${component.disabled} class="${component.getAttribute("class")}" name="${component.getAttribute("name")}" value="${component.data?.['Contact']}"/>
|
|
17
|
+
<qbo-popup>
|
|
18
|
+
<div slot="button">
|
|
19
|
+
<span class="${component.spanClass}">
|
|
20
|
+
<i class="${component.icon}"></i>
|
|
21
|
+
</span>
|
|
22
|
+
</div>
|
|
23
|
+
<div slot="content">
|
|
24
|
+
<div class="${component.modalDivClass}">
|
|
25
|
+
<div class="${component.modalDialogDivClass}">
|
|
26
|
+
<div class="${component.modalContentDivClass}">
|
|
27
|
+
<div class="${component.modalHeaderDivClass}">${component.modalHeaderText}</div>
|
|
28
|
+
<div class="${component.modalBodyDivClass}">
|
|
29
|
+
<qbo-select ?disabled=${component.disabled} class="${component.elementClass}" name="Prefix" apiEndpoint="api://qbo/objecttype/list?object=Contact.Prefix" optionValue="ObjectType" defaultValue="${component.data?.['Prefix']}" emptyOptionText="-- Prefix --"></qbo-select>
|
|
30
|
+
<input type="text" ?disabled=${component.disabled} class="${component.elementClass} ${component.elementStackedTopClass}" name="FirstName" placeholder="First Name" value="${component.data?.['FirstName']}"/>
|
|
31
|
+
<input type="text" ?disabled=${component.disabled} class="${component.elementClass} ${component.elementStackedTopClass}" name="MiddleName" placeholder="Middle Name" value="${component.data?.['MiddleName']}"/>
|
|
32
|
+
<input type="text" ?disabled=${component.disabled} class="${component.elementClass} ${component.elementStackedTopClass}" name="LastName" placeholder="Last Name" value="${component.data?.['LastName']}"/>
|
|
33
|
+
<qbo-select ?disabled=${component.disabled} class="${component.elementClass} ${component.elementStackedTopClass}" name="Suffix" apiEndpoint="api://qbo/objecttype/list?object=Contact.Suffix" optionValue="ObjectType" defaultValue="${component.data?.['Suffix']}" emptyOptionText="-- Suffix --"></qbo-select>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="${component.modalFooterDivClass}">
|
|
36
|
+
<button type="button" class="${component.buttonClass}" data-dismiss="modal">Close</button>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</qbo-popup>
|
|
43
|
+
</div>`;
|
|
44
|
+
});
|
|
45
|
+
let QboContactName = class QboContactName extends QboFormElement {
|
|
46
|
+
constructor() {
|
|
47
|
+
super(...arguments);
|
|
48
|
+
this.buttonClass = 'qbo-secondary';
|
|
49
|
+
this.disabled = true;
|
|
50
|
+
this.elementClass = 'qbo-sm';
|
|
51
|
+
this.elementStackedTopClass = 'qbo-sm-top';
|
|
52
|
+
this.icon = 'qbo-icon-person-lines-fill';
|
|
53
|
+
this.modalBodyDivClass = 'qbo-modal-body';
|
|
54
|
+
this.modalContentDivClass = 'qbo-modal-content';
|
|
55
|
+
this.modalDivClass = 'qbo-modal';
|
|
56
|
+
this.modalDialogDivClass = 'qbo-modal-dialog';
|
|
57
|
+
this.modalFooterDivClass = 'qbo-modal-footer';
|
|
58
|
+
this.modalHeaderDivClass = 'qbo-modal-header';
|
|
59
|
+
this.modalHeaderText = 'Contact Name';
|
|
60
|
+
this.slotClass = 'qbo-input-group';
|
|
61
|
+
this.spanClass = 'qbo-input-group-text qbo-pointer';
|
|
62
|
+
this.type = 'defaultLayout';
|
|
63
|
+
this.renderInHost = true;
|
|
64
|
+
}
|
|
65
|
+
createRenderRoot() {
|
|
66
|
+
return this.renderInHost ? this : super.createRenderRoot();
|
|
67
|
+
}
|
|
68
|
+
render() {
|
|
69
|
+
return html `<slot>${contactNameMap.has(this.type) ? contactNameMap.get(this.type)(this) : null}</slot>`;
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
__decorate([
|
|
73
|
+
property({ type: String }),
|
|
74
|
+
__metadata("design:type", Object)
|
|
75
|
+
], QboContactName.prototype, "buttonClass", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
property({ type: Boolean }),
|
|
78
|
+
__metadata("design:type", Object)
|
|
79
|
+
], QboContactName.prototype, "disabled", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
property({ type: String }),
|
|
82
|
+
__metadata("design:type", Object)
|
|
83
|
+
], QboContactName.prototype, "elementClass", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
property({ type: String }),
|
|
86
|
+
__metadata("design:type", Object)
|
|
87
|
+
], QboContactName.prototype, "elementStackedTopClass", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
property({ type: String }),
|
|
90
|
+
__metadata("design:type", Object)
|
|
91
|
+
], QboContactName.prototype, "icon", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
property({ type: String }),
|
|
94
|
+
__metadata("design:type", Object)
|
|
95
|
+
], QboContactName.prototype, "modalBodyDivClass", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
property({ type: String }),
|
|
98
|
+
__metadata("design:type", Object)
|
|
99
|
+
], QboContactName.prototype, "modalContentDivClass", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
property({ type: String }),
|
|
102
|
+
__metadata("design:type", Object)
|
|
103
|
+
], QboContactName.prototype, "modalDivClass", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
property({ type: String }),
|
|
106
|
+
__metadata("design:type", Object)
|
|
107
|
+
], QboContactName.prototype, "modalDialogDivClass", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
property({ type: String }),
|
|
110
|
+
__metadata("design:type", Object)
|
|
111
|
+
], QboContactName.prototype, "modalFooterDivClass", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
property({ type: String }),
|
|
114
|
+
__metadata("design:type", Object)
|
|
115
|
+
], QboContactName.prototype, "modalHeaderDivClass", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
property({ type: String }),
|
|
118
|
+
__metadata("design:type", Object)
|
|
119
|
+
], QboContactName.prototype, "modalHeaderText", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
property({ type: String }),
|
|
122
|
+
__metadata("design:type", Object)
|
|
123
|
+
], QboContactName.prototype, "slotClass", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
property({ type: String }),
|
|
126
|
+
__metadata("design:type", Object)
|
|
127
|
+
], QboContactName.prototype, "spanClass", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
property(),
|
|
130
|
+
__metadata("design:type", Object)
|
|
131
|
+
], QboContactName.prototype, "type", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
property({ type: Boolean }),
|
|
134
|
+
__metadata("design:type", Object)
|
|
135
|
+
], QboContactName.prototype, "renderInHost", void 0);
|
|
136
|
+
QboContactName = __decorate([
|
|
137
|
+
customElement('qbo-contact-name')
|
|
138
|
+
], QboContactName);
|
|
139
|
+
export { QboContactName };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { TemplateResult, html } from 'lit';
|
|
2
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
3
|
+
import { QboFormElement } from '@quandis/qbo4.ui';
|
|
4
|
+
|
|
5
|
+
type TemplateFunction = (component: any) => TemplateResult;
|
|
6
|
+
const contactNameMap: Map<string, TemplateFunction> = new Map();
|
|
7
|
+
contactNameMap.set('defaultLayout', (component: QboContactName) => {
|
|
8
|
+
return html`<div slot="content" class="${component.slotClass}">
|
|
9
|
+
<input type="text" ?disabled=${component.disabled} class="${component.getAttribute("class")}" name="${component.getAttribute("name")}" value="${component.data?.['Contact']}"/>
|
|
10
|
+
<qbo-popup>
|
|
11
|
+
<div slot="button">
|
|
12
|
+
<span class="${component.spanClass}">
|
|
13
|
+
<i class="${component.icon}"></i>
|
|
14
|
+
</span>
|
|
15
|
+
</div>
|
|
16
|
+
<div slot="content">
|
|
17
|
+
<div class="${component.modalDivClass}">
|
|
18
|
+
<div class="${component.modalDialogDivClass}">
|
|
19
|
+
<div class="${component.modalContentDivClass}">
|
|
20
|
+
<div class="${component.modalHeaderDivClass}">${component.modalHeaderText}</div>
|
|
21
|
+
<div class="${component.modalBodyDivClass}">
|
|
22
|
+
<qbo-select ?disabled=${component.disabled} class="${component.elementClass}" name="Prefix" apiEndpoint="api://qbo/objecttype/list?object=Contact.Prefix" optionValue="ObjectType" defaultValue="${component.data?.['Prefix']}" emptyOptionText="-- Prefix --"></qbo-select>
|
|
23
|
+
<input type="text" ?disabled=${component.disabled} class="${component.elementClass} ${component.elementStackedTopClass}" name="FirstName" placeholder="First Name" value="${component.data?.['FirstName']}"/>
|
|
24
|
+
<input type="text" ?disabled=${component.disabled} class="${component.elementClass} ${component.elementStackedTopClass}" name="MiddleName" placeholder="Middle Name" value="${component.data?.['MiddleName']}"/>
|
|
25
|
+
<input type="text" ?disabled=${component.disabled} class="${component.elementClass} ${component.elementStackedTopClass}" name="LastName" placeholder="Last Name" value="${component.data?.['LastName']}"/>
|
|
26
|
+
<qbo-select ?disabled=${component.disabled} class="${component.elementClass} ${component.elementStackedTopClass}" name="Suffix" apiEndpoint="api://qbo/objecttype/list?object=Contact.Suffix" optionValue="ObjectType" defaultValue="${component.data?.['Suffix']}" emptyOptionText="-- Suffix --"></qbo-select>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="${component.modalFooterDivClass}">
|
|
29
|
+
<button type="button" class="${component.buttonClass}" data-dismiss="modal">Close</button>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</qbo-popup>
|
|
36
|
+
</div>`;
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
@customElement('qbo-contact-name')
|
|
40
|
+
export class QboContactName extends QboFormElement {
|
|
41
|
+
|
|
42
|
+
@property({ type: String })
|
|
43
|
+
buttonClass: String | null = 'qbo-secondary';
|
|
44
|
+
|
|
45
|
+
@property({ type: Boolean })
|
|
46
|
+
disabled = true;
|
|
47
|
+
|
|
48
|
+
@property({ type: String })
|
|
49
|
+
elementClass: String | null = 'qbo-sm';
|
|
50
|
+
|
|
51
|
+
@property({ type: String })
|
|
52
|
+
elementStackedTopClass: String | null = 'qbo-sm-top';
|
|
53
|
+
|
|
54
|
+
@property({ type: String })
|
|
55
|
+
icon: String | null = 'qbo-icon-person-lines-fill';
|
|
56
|
+
|
|
57
|
+
@property({ type: String })
|
|
58
|
+
modalBodyDivClass: String | null = 'qbo-modal-body';
|
|
59
|
+
|
|
60
|
+
@property({ type: String })
|
|
61
|
+
modalContentDivClass: String | null = 'qbo-modal-content';
|
|
62
|
+
|
|
63
|
+
@property({ type: String })
|
|
64
|
+
modalDivClass: String | null = 'qbo-modal';
|
|
65
|
+
|
|
66
|
+
@property({ type: String })
|
|
67
|
+
modalDialogDivClass: String | null = 'qbo-modal-dialog';
|
|
68
|
+
|
|
69
|
+
@property({ type: String })
|
|
70
|
+
modalFooterDivClass: String | null = 'qbo-modal-footer';
|
|
71
|
+
|
|
72
|
+
@property({ type: String })
|
|
73
|
+
modalHeaderDivClass: String | null = 'qbo-modal-header';
|
|
74
|
+
|
|
75
|
+
@property({ type: String })
|
|
76
|
+
modalHeaderText: String | null = 'Contact Name';
|
|
77
|
+
|
|
78
|
+
@property({ type: String })
|
|
79
|
+
slotClass: String | null = 'qbo-input-group';
|
|
80
|
+
|
|
81
|
+
@property({ type: String })
|
|
82
|
+
spanClass: String | null = 'qbo-input-group-text qbo-pointer';
|
|
83
|
+
|
|
84
|
+
@property()
|
|
85
|
+
type: string | null = 'defaultLayout';
|
|
86
|
+
|
|
87
|
+
@property({ type: Boolean })
|
|
88
|
+
renderInHost = true;
|
|
89
|
+
|
|
90
|
+
createRenderRoot() {
|
|
91
|
+
return this.renderInHost ? this : super.createRenderRoot();
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
render() {
|
|
95
|
+
return html`<slot>${contactNameMap.has(this.type!) ? contactNameMap.get(this.type!)!(this) : null}</slot>`;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class QboContact extends LitElement {
|
|
3
|
+
apiEndpoint: string;
|
|
4
|
+
colFourClass: String | null;
|
|
5
|
+
colSixClass: String | null;
|
|
6
|
+
colThreeClass: String | null;
|
|
7
|
+
colTwelveClass: String | null;
|
|
8
|
+
contactId: String | null;
|
|
9
|
+
contactLabel: String | null;
|
|
10
|
+
contactName: String | null;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
divSectionHeaderClass: String | null;
|
|
13
|
+
formControlSmallClass: String | null;
|
|
14
|
+
formLabelSmallClass: String | null;
|
|
15
|
+
formSelectSmallClass: String | null;
|
|
16
|
+
renderInHost: boolean;
|
|
17
|
+
jsonData: any | null;
|
|
18
|
+
createRenderRoot(): HTMLElement | DocumentFragment;
|
|
19
|
+
connectedCallback(): Promise<void>;
|
|
20
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { html, LitElement } from 'lit';
|
|
11
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
12
|
+
import { services } from '@quandis/qbo4.configuration';
|
|
13
|
+
import { RestApiService } from '@quandis/qbo4.ui';
|
|
14
|
+
import { elementDate } from '@quandis/qbo4.ui';
|
|
15
|
+
let QboContact = class QboContact extends LitElement {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.apiEndpoint = 'qbo';
|
|
19
|
+
this.colFourClass = 'qbo-col-4';
|
|
20
|
+
this.colSixClass = 'qbo-col-6';
|
|
21
|
+
this.colThreeClass = 'qbo-col-3';
|
|
22
|
+
this.colTwelveClass = 'qbo-col-12';
|
|
23
|
+
this.contactId = null;
|
|
24
|
+
this.contactLabel = 'Contact';
|
|
25
|
+
this.contactName = 'Contact';
|
|
26
|
+
this.disabled = true;
|
|
27
|
+
this.divSectionHeaderClass = 'qbo-header';
|
|
28
|
+
this.formControlSmallClass = 'qbo-sm';
|
|
29
|
+
this.formLabelSmallClass = 'qbo-sm';
|
|
30
|
+
this.formSelectSmallClass = 'qbo-sm';
|
|
31
|
+
this.renderInHost = true;
|
|
32
|
+
this.jsonData = {};
|
|
33
|
+
}
|
|
34
|
+
createRenderRoot() {
|
|
35
|
+
return this.renderInHost ? this : super.createRenderRoot();
|
|
36
|
+
}
|
|
37
|
+
async connectedCallback() {
|
|
38
|
+
super.connectedCallback();
|
|
39
|
+
const service = services.container.isRegistered(this.apiEndpoint) ? services.container.resolve(this.apiEndpoint) : new RestApiService(this.apiEndpoint);
|
|
40
|
+
this.jsonData = await service.fetch(`contact/summary/${this.contactId}`);
|
|
41
|
+
}
|
|
42
|
+
render() {
|
|
43
|
+
if (this.jsonData == undefined || this.jsonData.Root == undefined || (this.jsonData.Root.ContactItem == undefined && this.contactId != null))
|
|
44
|
+
return html `<p>Loading...</p>`;
|
|
45
|
+
return html `<slot>
|
|
46
|
+
<div class="${this.colSixClass}">
|
|
47
|
+
<label for="${this.contactName}" class="${this.formLabelSmallClass}">${this.contactLabel}</label>
|
|
48
|
+
<qbo-contact-name class="${this.formControlSmallClass}" name="${this.contactName}" .data="${this.jsonData.Root.ContactItem}"></qbo-contact-name>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="${this.colSixClass}">
|
|
51
|
+
<label for="ContactTemplateID" class="${this.formLabelSmallClass}">Template</label>
|
|
52
|
+
<qbo-select ?disabled=${this.disabled} class="${this.formSelectSmallClass}" name="ContactTemplateID" apiEndpoint="api://qbo/contacttemplate/listwhere?appliesto=${this.jsonData.Root.ContactItem?.Object}" defaultValue="${this.jsonData.Root.ContactItem?.ContactTemplateID}"></qbo-select>
|
|
53
|
+
</div>
|
|
54
|
+
<div class="${this.colSixClass}">
|
|
55
|
+
<label for="Status" class="${this.formLabelSmallClass}">Status</label>
|
|
56
|
+
<qbo-select ?disabled=${this.disabled} class="${this.formSelectSmallClass}" name="Status" apiEndpoint="api://qbo/objectstatus/customlist?object=Contact&objectid=${this.jsonData.Root.ContactItem?.ContactTemplateID}" optionValue="ObjectStatus" defaultValue="${this.jsonData.Root.ContactItem?.Status}"></qbo-select>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="${this.colSixClass}">
|
|
59
|
+
<label for="ContactType" class="${this.formLabelSmallClass}">Type</label>
|
|
60
|
+
<qbo-select ?disabled=${this.disabled} class="${this.formSelectSmallClass}" name="ContactType" apiEndpoint="api://qbo/objecttype/customlist?object=Contact&objectid=${this.jsonData.Root.ContactItem?.ContactTemplateID}" optionValue="ObjectType" defaultValue="${this.jsonData.Root.ContactItem?.ContactType}"></qbo-select>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="${this.divSectionHeaderClass}">
|
|
63
|
+
<h5>Location</h5>
|
|
64
|
+
</div>
|
|
65
|
+
<div class="${this.colSixClass}">
|
|
66
|
+
<label for="Company" class="${this.formLabelSmallClass}">Company</label>
|
|
67
|
+
<input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="Company" value="${this.jsonData.Root.ContactItem?.Company}"/>
|
|
68
|
+
</div>
|
|
69
|
+
<div class="${this.colSixClass}">
|
|
70
|
+
<label for="Title" class="${this.formLabelSmallClass}">Title</label>
|
|
71
|
+
<input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="Title" value="${this.jsonData.Root.ContactItem?.Title}"/>
|
|
72
|
+
</div>
|
|
73
|
+
<div class="${this.colTwelveClass}">
|
|
74
|
+
<label for="Address" class="${this.formLabelSmallClass}">Address</label>
|
|
75
|
+
<textarea ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="Address">${this.jsonData.Root.ContactItem?.Address}</textarea>
|
|
76
|
+
</div>
|
|
77
|
+
<div class="${this.colSixClass}">
|
|
78
|
+
<label for="City" class="${this.formLabelSmallClass}">City</label>
|
|
79
|
+
<input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="City" value="${this.jsonData.Root.ContactItem?.City}"/>
|
|
80
|
+
</div>
|
|
81
|
+
<div class="${this.colThreeClass}">
|
|
82
|
+
<label for="State" class="${this.formLabelSmallClass}">State</label>
|
|
83
|
+
<qbo-select ?disabled=${this.disabled} class="${this.formSelectSmallClass}" name="State" apiEndpoint="api://qbo/state/list" optionValue="State" defaultValue="${this.jsonData.Root.ContactItem?.State}"></qbo-select>
|
|
84
|
+
</div>
|
|
85
|
+
<div class="${this.colThreeClass}">
|
|
86
|
+
<label for="PostalCode" class="${this.formLabelSmallClass}">Postal Code</label>
|
|
87
|
+
<input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="PostalCode" pattern="\d{5}-?(\d{4})?" value="${this.jsonData.Root.ContactItem?.PostalCode}"/>
|
|
88
|
+
</div>
|
|
89
|
+
<div class="${this.colSixClass}">
|
|
90
|
+
<label for="Country" class="${this.formLabelSmallClass}">Country</label>
|
|
91
|
+
<input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="Country" value="${this.jsonData.Root.ContactItem?.Country}"/>
|
|
92
|
+
</div>
|
|
93
|
+
<div class="${this.colThreeClass}">
|
|
94
|
+
<label for="Latitude" class="${this.formLabelSmallClass}">Latitude</label>
|
|
95
|
+
<input type="number" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="Latitude" value="${this.jsonData.Root.ContactItem?.Latitude}"/>
|
|
96
|
+
</div>
|
|
97
|
+
<div class="${this.colThreeClass}">
|
|
98
|
+
<label for="Longitude" class="${this.formLabelSmallClass}">Longitude</label>
|
|
99
|
+
<input type="number" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="Longitude" value="${this.jsonData.Root.ContactItem?.Longitude}"/>
|
|
100
|
+
</div>
|
|
101
|
+
<div class="${this.divSectionHeaderClass}">
|
|
102
|
+
<h5>Identity</h5>
|
|
103
|
+
</div>
|
|
104
|
+
<div class="${this.colThreeClass}">
|
|
105
|
+
<label for="USSSN" class="${this.formLabelSmallClass}">SSN</label>
|
|
106
|
+
<qbo-ssn .data="${this.jsonData.Root.ContactItem}"></qbo-ssn>
|
|
107
|
+
</div>
|
|
108
|
+
<div class="${this.colThreeClass}">
|
|
109
|
+
<label for="TIN" class="${this.formLabelSmallClass}">TIN</label>
|
|
110
|
+
<input type="number" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="TIN" value="${this.jsonData.Root.ContactItem?.TIN}"/>
|
|
111
|
+
</div>
|
|
112
|
+
<div class="${this.colThreeClass}">
|
|
113
|
+
<label for="Nationality" class="${this.formLabelSmallClass}">Nationality</label>
|
|
114
|
+
<qbo-select ?disabled=${this.disabled} class="${this.formSelectSmallClass}" name="Nationality" apiEndpoint="api://qbo/objecttype/list?object=Contact.Nationality" optionValue="ObjectType" defaultValue="${this.jsonData.Root.ContactItem?.Nationality}"></qbo-select>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="${this.colThreeClass}">
|
|
117
|
+
<label for="SpokenLanguage" class="${this.formLabelSmallClass}">Spoken Language</label>
|
|
118
|
+
<qbo-select ?disabled=${this.disabled} class="${this.formSelectSmallClass}" name="SpokenLanguage" apiEndpoint="api://qbo/objecttype/list?object=Contact.SpokenLanguage" optionValue="ObjectType" defaultValue="${this.jsonData.Root.ContactItem?.SpokenLanguage}"></qbo-select>
|
|
119
|
+
</div>
|
|
120
|
+
<div class="${this.colThreeClass}">
|
|
121
|
+
<label for="BirthDate" class="${this.formLabelSmallClass}">Birth Date</label>
|
|
122
|
+
<input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="BirthDate" value="${elementDate(this.jsonData.Root.ContactItem?.BirthDate)}"/>
|
|
123
|
+
</div>
|
|
124
|
+
<div class="${this.colThreeClass}">
|
|
125
|
+
<label for="DeathDate" class="${this.formLabelSmallClass}">Death Date</label>
|
|
126
|
+
<input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="DeathDate" value="${elementDate(this.jsonData.Root.ContactItem?.DeathDate)}"/>
|
|
127
|
+
</div>
|
|
128
|
+
<div class="${this.colThreeClass}">
|
|
129
|
+
<label for="ValidStart" class="${this.formLabelSmallClass}">Valid Start</label>
|
|
130
|
+
<input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="ValidStart" value="${elementDate(this.jsonData.Root.ContactItem?.ValidStart)}"/>
|
|
131
|
+
</div>
|
|
132
|
+
<div class="${this.colThreeClass}">
|
|
133
|
+
<label for="ValidEnd" class="${this.formLabelSmallClass}">Valid End</label>
|
|
134
|
+
<input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="ValidEnd" value="${elementDate(this.jsonData.Root.ContactItem?.ValidEnd)}"/>
|
|
135
|
+
</div>
|
|
136
|
+
<div class="${this.colSixClass}">
|
|
137
|
+
<label for="VerifiedSource" class="${this.formLabelSmallClass}">Verified Source</label>
|
|
138
|
+
<input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="VerifiedSource" value="${this.jsonData.Root.ContactItem?.VerifiedSource}"/>
|
|
139
|
+
</div>
|
|
140
|
+
<div class="${this.colThreeClass}">
|
|
141
|
+
<label for="VerifiedDate" class="${this.formLabelSmallClass}">Verified Date</label>
|
|
142
|
+
<input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="VerifiedDate" value="${elementDate(this.jsonData.Root.ContactItem?.VerifiedDate)}"/>
|
|
143
|
+
</div>
|
|
144
|
+
<div class="${this.colThreeClass}">
|
|
145
|
+
<label for="VerifiedConfidence" class="${this.formLabelSmallClass}">Verified Confidence</label>
|
|
146
|
+
<input type="number" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="VerifiedConfidence" value="${this.jsonData.Root.ContactItem?.VerifiedConfidence}"/>
|
|
147
|
+
</div>
|
|
148
|
+
<div class="${this.divSectionHeaderClass}">
|
|
149
|
+
<h5>SCRA</h5>
|
|
150
|
+
</div>
|
|
151
|
+
<div class="${this.colThreeClass}">
|
|
152
|
+
<label for="SCRAStatus" class="${this.formLabelSmallClass}">SCRA Status</label>
|
|
153
|
+
<qbo-select ?disabled=${this.disabled} class="${this.formSelectSmallClass}" name="SCRAStatus" apiEndpoint="api://qbo/objecttype/list?object=Contact.SCRAStatus" optionValue="ObjectType" defaultValue="${this.jsonData.Root.ContactItem?.SCRAStatus}"></qbo-select>
|
|
154
|
+
</div>
|
|
155
|
+
<div class="${this.colThreeClass}">
|
|
156
|
+
<label for="SCRAStatusAsOf" class="${this.formLabelSmallClass}">SCRA Status As Of</label>
|
|
157
|
+
<input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAStatusAsOf" value="${elementDate(this.jsonData.Root.ContactItem?.SCRAStatusAsOf)}"/>
|
|
158
|
+
</div>
|
|
159
|
+
<div class="${this.colThreeClass}">
|
|
160
|
+
<label for="SCRAStartDate" class="${this.formLabelSmallClass}">SCRA Start Date</label>
|
|
161
|
+
<input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAStartDate" value="${elementDate(this.jsonData.Root.ContactItem?.SCRAStartDate)}"/>
|
|
162
|
+
</div>
|
|
163
|
+
<div class="${this.colThreeClass}">
|
|
164
|
+
<label for="SCRADischargeDate" class="${this.formLabelSmallClass}">SCRA Discharge Date</label>
|
|
165
|
+
<input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRADischargeDate" value="${elementDate(this.jsonData.Root.ContactItem?.SCRADischargeDate)}"/>
|
|
166
|
+
</div>
|
|
167
|
+
<div class="${this.colThreeClass}">
|
|
168
|
+
<label for="SCRAVerified" class="${this.formLabelSmallClass}">SCRA Verified</label>
|
|
169
|
+
<input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAVerified" value="${this.jsonData.Root.ContactItem?.SCRAVerified}"/>
|
|
170
|
+
</div>
|
|
171
|
+
<div class="${this.colThreeClass}">
|
|
172
|
+
<label for="SCRAVerifiedDate" class="${this.formLabelSmallClass}">SCRA Verified Date</label>
|
|
173
|
+
<input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAVerifiedDate" value="${elementDate(this.jsonData.Root.ContactItem?.SCRAVerifiedDate)}"/>
|
|
174
|
+
</div>
|
|
175
|
+
<div class="${this.colThreeClass}">
|
|
176
|
+
<label for="SCRASource" class="${this.formLabelSmallClass}">SCRA Source</label>
|
|
177
|
+
<input type="text" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRASource" value="${this.jsonData.Root.ContactItem?.SCRASource}"/>
|
|
178
|
+
</div>
|
|
179
|
+
<div class="${this.colThreeClass}">
|
|
180
|
+
<label for="SCRAID" class="${this.formLabelSmallClass}">SCRA ID</label>
|
|
181
|
+
<input type="number" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAID" value="${this.jsonData.Root.ContactItem?.SCRAID}"/>
|
|
182
|
+
</div>
|
|
183
|
+
<qbo-form-edit .data="${this.jsonData.Root.ContactItem}"></qbo-form-edit>
|
|
184
|
+
</slot>`;
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
__decorate([
|
|
188
|
+
property({ type: String }),
|
|
189
|
+
__metadata("design:type", Object)
|
|
190
|
+
], QboContact.prototype, "apiEndpoint", void 0);
|
|
191
|
+
__decorate([
|
|
192
|
+
property({ type: String }),
|
|
193
|
+
__metadata("design:type", Object)
|
|
194
|
+
], QboContact.prototype, "colFourClass", void 0);
|
|
195
|
+
__decorate([
|
|
196
|
+
property({ type: String }),
|
|
197
|
+
__metadata("design:type", Object)
|
|
198
|
+
], QboContact.prototype, "colSixClass", void 0);
|
|
199
|
+
__decorate([
|
|
200
|
+
property({ type: String }),
|
|
201
|
+
__metadata("design:type", Object)
|
|
202
|
+
], QboContact.prototype, "colThreeClass", void 0);
|
|
203
|
+
__decorate([
|
|
204
|
+
property({ type: String }),
|
|
205
|
+
__metadata("design:type", Object)
|
|
206
|
+
], QboContact.prototype, "colTwelveClass", void 0);
|
|
207
|
+
__decorate([
|
|
208
|
+
property({ type: String }),
|
|
209
|
+
__metadata("design:type", Object)
|
|
210
|
+
], QboContact.prototype, "contactId", void 0);
|
|
211
|
+
__decorate([
|
|
212
|
+
property({ type: String }),
|
|
213
|
+
__metadata("design:type", Object)
|
|
214
|
+
], QboContact.prototype, "contactLabel", void 0);
|
|
215
|
+
__decorate([
|
|
216
|
+
property({ type: String }),
|
|
217
|
+
__metadata("design:type", Object)
|
|
218
|
+
], QboContact.prototype, "contactName", void 0);
|
|
219
|
+
__decorate([
|
|
220
|
+
property({ type: Boolean }),
|
|
221
|
+
__metadata("design:type", Object)
|
|
222
|
+
], QboContact.prototype, "disabled", void 0);
|
|
223
|
+
__decorate([
|
|
224
|
+
property({ type: String }),
|
|
225
|
+
__metadata("design:type", Object)
|
|
226
|
+
], QboContact.prototype, "divSectionHeaderClass", void 0);
|
|
227
|
+
__decorate([
|
|
228
|
+
property({ type: String }),
|
|
229
|
+
__metadata("design:type", Object)
|
|
230
|
+
], QboContact.prototype, "formControlSmallClass", void 0);
|
|
231
|
+
__decorate([
|
|
232
|
+
property({ type: String }),
|
|
233
|
+
__metadata("design:type", Object)
|
|
234
|
+
], QboContact.prototype, "formLabelSmallClass", void 0);
|
|
235
|
+
__decorate([
|
|
236
|
+
property({ type: String }),
|
|
237
|
+
__metadata("design:type", Object)
|
|
238
|
+
], QboContact.prototype, "formSelectSmallClass", void 0);
|
|
239
|
+
__decorate([
|
|
240
|
+
property({ type: Boolean }),
|
|
241
|
+
__metadata("design:type", Object)
|
|
242
|
+
], QboContact.prototype, "renderInHost", void 0);
|
|
243
|
+
__decorate([
|
|
244
|
+
property({ type: Object }),
|
|
245
|
+
__metadata("design:type", Object)
|
|
246
|
+
], QboContact.prototype, "jsonData", void 0);
|
|
247
|
+
QboContact = __decorate([
|
|
248
|
+
customElement('qbo-contact')
|
|
249
|
+
], QboContact);
|
|
250
|
+
export { QboContact };
|