ngx-cho-components 0.0.1 → 0.0.2
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/esm2022/lib/cho-address-info.component.mjs +1 -4
- package/esm2022/lib/cho-details-card.component.mjs +52 -0
- package/esm2022/lib/cho-email-info.component.mjs +36 -0
- package/esm2022/lib/cho-modal.component.mjs +58 -0
- package/esm2022/lib/cho-phone-info.component.mjs +29 -0
- package/esm2022/lib/cho-radio-group.component.mjs +70 -0
- package/esm2022/lib/cho-review-status-alert.component.mjs +31 -0
- package/esm2022/lib/index.mjs +7 -1
- package/fesm2022/ngx-cho-components.mjs +263 -6
- package/fesm2022/ngx-cho-components.mjs.map +1 -1
- package/lib/cho-details-card.component.d.ts +8 -0
- package/lib/cho-email-info.component.d.ts +11 -0
- package/lib/cho-modal.component.d.ts +11 -0
- package/lib/cho-phone-info.component.d.ts +7 -0
- package/lib/cho-radio-group.component.d.ts +16 -0
- package/lib/cho-review-status-alert.component.d.ts +7 -0
- package/lib/index.d.ts +6 -0
- package/package.json +4 -2
|
@@ -2,9 +2,6 @@ import { Component, Input } from '@angular/core';
|
|
|
2
2
|
import { NgIf, TitleCasePipe } from '@angular/common';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export class ChoAddressInfoComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.address = {};
|
|
7
|
-
}
|
|
8
5
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoAddressInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9
6
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ChoAddressInfoComponent, isStandalone: true, selector: "cho-address-info", inputs: { address: "address" }, ngImport: i0, template: `<p *ngIf="address.addressLine1" class="m-0">
|
|
10
7
|
{{ address.addressLine1 | titlecase }}
|
|
@@ -37,4 +34,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
37
34
|
}], propDecorators: { address: [{
|
|
38
35
|
type: Input
|
|
39
36
|
}] } });
|
|
40
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hvLWFkZHJlc3MtaW5mby5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtY2hvLWNvbXBvbmVudHMvc3JjL2xpYi9jaG8tYWRkcmVzcy1pbmZvLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUVqRCxPQUFPLEVBQUUsSUFBSSxFQUFFLGFBQWEsRUFBRSxNQUFNLGlCQUFpQixDQUFDOztBQWlCdEQsTUFBTSxPQUFPLHVCQUF1QjsrR0FBdkIsdUJBQXVCO21HQUF2Qix1QkFBdUIsNEdBYnRCOzs7Ozs7Ozs7Y0FTQSx1REFFQSxhQUFhLGtEQUFFLElBQUk7OzRGQUVwQix1QkFBdUI7a0JBZm5DLFNBQVM7bUJBQUM7b0JBQ1AsUUFBUSxFQUFFLGtCQUFrQjtvQkFDNUIsUUFBUSxFQUFFOzs7Ozs7Ozs7Y0FTQTtvQkFDVixVQUFVLEVBQUUsSUFBSTtvQkFDaEIsT0FBTyxFQUFFLENBQUMsYUFBYSxFQUFFLElBQUksQ0FBQztpQkFDakM7OEJBRVksT0FBTztzQkFBZixLQUFLIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBJbnB1dCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgSUFkZHJlc3MgfSBmcm9tICduZ3gtY2hvLW1vZGVscyc7XG5pbXBvcnQgeyBOZ0lmLCBUaXRsZUNhc2VQaXBlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcblxuQENvbXBvbmVudCh7XG4gICAgc2VsZWN0b3I6ICdjaG8tYWRkcmVzcy1pbmZvJyxcbiAgICB0ZW1wbGF0ZTogYDxwICpuZ0lmPVwiYWRkcmVzcy5hZGRyZXNzTGluZTFcIiBjbGFzcz1cIm0tMFwiPlxuICAgICAgICAgICAge3sgYWRkcmVzcy5hZGRyZXNzTGluZTEgfCB0aXRsZWNhc2UgfX1cbiAgICAgICAgPC9wPlxuICAgICAgICA8cCAqbmdJZj1cImFkZHJlc3MuYWRkcmVzc0xpbmUyXCIgY2xhc3M9XCJtLTBcIj5cbiAgICAgICAgICAgIHt7IGFkZHJlc3MuYWRkcmVzc0xpbmUyIHwgdGl0bGVjYXNlIH19XG4gICAgICAgIDwvcD5cbiAgICAgICAgPHAgKm5nSWY9XCJhZGRyZXNzLmNpdHlcIiBjbGFzcz1cIm0tMFwiPlxuICAgICAgICAgICAge3sgYWRkcmVzcy5jaXR5IHwgdGl0bGVjYXNlIH19LCB7eyBhZGRyZXNzLnN0YXRlUHJvdmluY2VDb2RlIH19XG4gICAgICAgICAgICB7eyBhZGRyZXNzLnBvc3RhbENvZGUgfX1cbiAgICAgICAgPC9wPiBgLFxuICAgIHN0YW5kYWxvbmU6IHRydWUsXG4gICAgaW1wb3J0czogW1RpdGxlQ2FzZVBpcGUsIE5nSWZdLFxufSlcbmV4cG9ydCBjbGFzcyBDaG9BZGRyZXNzSW5mb0NvbXBvbmVudCB7XG4gICAgQElucHV0KCkgYWRkcmVzcyE6IElBZGRyZXNzO1xufVxuIl19
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Component, ContentChild, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class ChoDetailsCardComponent {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.title = '';
|
|
6
|
+
this.toolbar = null;
|
|
7
|
+
}
|
|
8
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoDetailsCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ChoDetailsCardComponent, isStandalone: true, selector: "cho-details-card", inputs: { title: "title" }, queries: [{ propertyName: "toolbar", first: true, predicate: ["toolbar"], descendants: true }], ngImport: i0, template: `
|
|
10
|
+
<div class="card mb-3">
|
|
11
|
+
<div class="card-header">
|
|
12
|
+
<h3 class="card-title">{{ title }}</h3>
|
|
13
|
+
|
|
14
|
+
<div class="card-toolbar">
|
|
15
|
+
<ng-content #toolbar select="[toolbar]"></ng-content>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<div class="card-body">
|
|
20
|
+
<ng-content></ng-content>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
`, isInline: true }); }
|
|
24
|
+
}
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoDetailsCardComponent, decorators: [{
|
|
26
|
+
type: Component,
|
|
27
|
+
args: [{
|
|
28
|
+
selector: 'cho-details-card',
|
|
29
|
+
standalone: true,
|
|
30
|
+
template: `
|
|
31
|
+
<div class="card mb-3">
|
|
32
|
+
<div class="card-header">
|
|
33
|
+
<h3 class="card-title">{{ title }}</h3>
|
|
34
|
+
|
|
35
|
+
<div class="card-toolbar">
|
|
36
|
+
<ng-content #toolbar select="[toolbar]"></ng-content>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
|
|
40
|
+
<div class="card-body">
|
|
41
|
+
<ng-content></ng-content>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
`,
|
|
45
|
+
}]
|
|
46
|
+
}], propDecorators: { title: [{
|
|
47
|
+
type: Input
|
|
48
|
+
}], toolbar: [{
|
|
49
|
+
type: ContentChild,
|
|
50
|
+
args: ['toolbar']
|
|
51
|
+
}] } });
|
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hvLWRldGFpbHMtY2FyZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtY2hvLWNvbXBvbmVudHMvc3JjL2xpYi9jaG8tZGV0YWlscy1jYXJkLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQWUsTUFBTSxlQUFlLENBQUM7O0FBcUI1RSxNQUFNLE9BQU8sdUJBQXVCO0lBbkJwQztRQW9CYSxVQUFLLEdBQUcsRUFBRSxDQUFDO1FBRUssWUFBTyxHQUFnQyxJQUFJLENBQUM7S0FDeEU7K0dBSlksdUJBQXVCO21HQUF2Qix1QkFBdUIsd01BaEJ0Qjs7Ozs7Ozs7Ozs7Ozs7S0FjVDs7NEZBRVEsdUJBQXVCO2tCQW5CbkMsU0FBUzttQkFBQztvQkFDUCxRQUFRLEVBQUUsa0JBQWtCO29CQUM1QixVQUFVLEVBQUUsSUFBSTtvQkFDaEIsUUFBUSxFQUFFOzs7Ozs7Ozs7Ozs7OztLQWNUO2lCQUNKOzhCQUVZLEtBQUs7c0JBQWIsS0FBSztnQkFFbUIsT0FBTztzQkFBL0IsWUFBWTt1QkFBQyxTQUFTIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBDb250ZW50Q2hpbGQsIElucHV0LCBUZW1wbGF0ZVJlZiB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgICBzZWxlY3RvcjogJ2Noby1kZXRhaWxzLWNhcmQnLFxuICAgIHN0YW5kYWxvbmU6IHRydWUsXG4gICAgdGVtcGxhdGU6IGBcbiAgICAgICAgPGRpdiBjbGFzcz1cImNhcmQgbWItM1wiPlxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cImNhcmQtaGVhZGVyXCI+XG4gICAgICAgICAgICAgICAgPGgzIGNsYXNzPVwiY2FyZC10aXRsZVwiPnt7IHRpdGxlIH19PC9oMz5cblxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJjYXJkLXRvb2xiYXJcIj5cbiAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRlbnQgI3Rvb2xiYXIgc2VsZWN0PVwiW3Rvb2xiYXJdXCI+PC9uZy1jb250ZW50PlxuICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgPC9kaXY+XG5cbiAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJjYXJkLWJvZHlcIj5cbiAgICAgICAgICAgICAgICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgPC9kaXY+XG4gICAgYCxcbn0pXG5leHBvcnQgY2xhc3MgQ2hvRGV0YWlsc0NhcmRDb21wb25lbnQge1xuICAgIEBJbnB1dCgpIHRpdGxlID0gJyc7XG5cbiAgICBAQ29udGVudENoaWxkKCd0b29sYmFyJykgdG9vbGJhcjogVGVtcGxhdGVSZWY8dW5rbm93bj4gfCBudWxsID0gbnVsbDtcbn1cbiJdfQ==
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { NgIf } from '@angular/common';
|
|
2
|
+
import { Component, Input } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/platform-browser";
|
|
5
|
+
export class ChoEmailInfoComponent {
|
|
6
|
+
constructor(sanitizer) {
|
|
7
|
+
this.sanitizer = sanitizer;
|
|
8
|
+
this.sanitizedEmailLink = this.email?.emailAddress
|
|
9
|
+
? this.sanitizer.bypassSecurityTrustUrl(`mailto:${this.email.emailAddress}`)
|
|
10
|
+
: '';
|
|
11
|
+
}
|
|
12
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoEmailInfoComponent, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
13
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ChoEmailInfoComponent, isStandalone: true, selector: "cho-email-info", inputs: { email: "email" }, ngImport: i0, template: `<ng-container *ngIf="email; else empty"
|
|
14
|
+
><span *ngIf="email.emailTypeCode">{{ email.emailTypeCode[0] }}: </span>
|
|
15
|
+
<a [href]="sanitizedEmailLink">{{ email.emailAddress }}</a>
|
|
16
|
+
<small *ngIf="email.description"> ({{ email.description }})</small></ng-container
|
|
17
|
+
>
|
|
18
|
+
<ng-template #empty><span>--</span></ng-template>`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
19
|
+
}
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoEmailInfoComponent, decorators: [{
|
|
21
|
+
type: Component,
|
|
22
|
+
args: [{
|
|
23
|
+
selector: 'cho-email-info',
|
|
24
|
+
template: `<ng-container *ngIf="email; else empty"
|
|
25
|
+
><span *ngIf="email.emailTypeCode">{{ email.emailTypeCode[0] }}: </span>
|
|
26
|
+
<a [href]="sanitizedEmailLink">{{ email.emailAddress }}</a>
|
|
27
|
+
<small *ngIf="email.description"> ({{ email.description }})</small></ng-container
|
|
28
|
+
>
|
|
29
|
+
<ng-template #empty><span>--</span></ng-template>`,
|
|
30
|
+
standalone: true,
|
|
31
|
+
imports: [NgIf],
|
|
32
|
+
}]
|
|
33
|
+
}], ctorParameters: () => [{ type: i1.DomSanitizer }], propDecorators: { email: [{
|
|
34
|
+
type: Input
|
|
35
|
+
}] } });
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hvLWVtYWlsLWluZm8uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LWNoby1jb21wb25lbnRzL3NyYy9saWIvY2hvLWVtYWlsLWluZm8uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUN2QyxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQzs7O0FBZ0JqRCxNQUFNLE9BQU8scUJBQXFCO0lBSzlCLFlBQW9CLFNBQXVCO1FBQXZCLGNBQVMsR0FBVCxTQUFTLENBQWM7UUFDdkMsSUFBSSxDQUFDLGtCQUFrQixHQUFHLElBQUksQ0FBQyxLQUFLLEVBQUUsWUFBWTtZQUM5QyxDQUFDLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxzQkFBc0IsQ0FBQyxVQUFVLElBQUksQ0FBQyxLQUFLLENBQUMsWUFBWSxFQUFFLENBQUM7WUFDNUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQztJQUNiLENBQUM7K0dBVFEscUJBQXFCO21HQUFyQixxQkFBcUIsc0dBVHBCOzs7OzswREFLNEMsNERBRTVDLElBQUk7OzRGQUVMLHFCQUFxQjtrQkFYakMsU0FBUzttQkFBQztvQkFDUCxRQUFRLEVBQUUsZ0JBQWdCO29CQUMxQixRQUFRLEVBQUU7Ozs7OzBEQUs0QztvQkFDdEQsVUFBVSxFQUFFLElBQUk7b0JBQ2hCLE9BQU8sRUFBRSxDQUFDLElBQUksQ0FBQztpQkFDbEI7aU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HNhbml0aXplZEVtYWlsTGluazogU2FmZVVybDtcblxuICAgIGNvbnN0cnVjdG9yKHByaXZhdGUgc2FuaXRpemVyOiBEb21TYW5pdGl6ZXIpIHtcbiAgICAgICAgdGhpcy5zYW5pdGl6ZWRFbWFpbExpbmsgPSB0aGlzLmVtYWlsPy5lbWFpbEFkZHJlc3NcbiAgICAgICAgICAgID8gdGhpcy5zYW5pdGl6ZXIuYnlwYXNzU2VjdXJpdHlUcnVzdFVybChgbWFpbHRvOiR7dGhpcy5lbWFpbC5lbWFpbEFkZHJlc3N9YClcbiAgICAgICAgICAgIDogJyc7XG4gICAgfVxufVxuIl19
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Component, ContentChild, Input } from '@angular/core';
|
|
2
|
+
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@ng-bootstrap/ng-bootstrap";
|
|
5
|
+
export class ChoModalComponent {
|
|
6
|
+
constructor(activeModal) {
|
|
7
|
+
this.activeModal = activeModal;
|
|
8
|
+
}
|
|
9
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoModalComponent, deps: [{ token: i1.NgbActiveModal }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ChoModalComponent, isStandalone: true, selector: "cho-modal", inputs: { title: "title" }, providers: [NgbActiveModal], queries: [{ propertyName: "filters", first: true, predicate: ["footer"], descendants: true }], ngImport: i0, template: `
|
|
11
|
+
<div class="modal-header">
|
|
12
|
+
<h2 id="modal-basic-title" class="modal-title">{{ title }}</h2>
|
|
13
|
+
<button
|
|
14
|
+
(click)="activeModal.dismiss()"
|
|
15
|
+
type="button"
|
|
16
|
+
class="btn btn-light py-1 px-3 fa-solid fa-x"></button>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<div class="modal-body">
|
|
20
|
+
<ng-content></ng-content>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
<div class="modal-footer">
|
|
24
|
+
<ng-content #footer select="[footer]"></ng-content>
|
|
25
|
+
</div>
|
|
26
|
+
`, isInline: true }); }
|
|
27
|
+
}
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoModalComponent, decorators: [{
|
|
29
|
+
type: Component,
|
|
30
|
+
args: [{
|
|
31
|
+
selector: 'cho-modal',
|
|
32
|
+
template: `
|
|
33
|
+
<div class="modal-header">
|
|
34
|
+
<h2 id="modal-basic-title" class="modal-title">{{ title }}</h2>
|
|
35
|
+
<button
|
|
36
|
+
(click)="activeModal.dismiss()"
|
|
37
|
+
type="button"
|
|
38
|
+
class="btn btn-light py-1 px-3 fa-solid fa-x"></button>
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<div class="modal-body">
|
|
42
|
+
<ng-content></ng-content>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<div class="modal-footer">
|
|
46
|
+
<ng-content #footer select="[footer]"></ng-content>
|
|
47
|
+
</div>
|
|
48
|
+
`,
|
|
49
|
+
standalone: true,
|
|
50
|
+
providers: [NgbActiveModal],
|
|
51
|
+
}]
|
|
52
|
+
}], ctorParameters: () => [{ type: i1.NgbActiveModal }], propDecorators: { title: [{
|
|
53
|
+
type: Input
|
|
54
|
+
}], filters: [{
|
|
55
|
+
type: ContentChild,
|
|
56
|
+
args: ['footer']
|
|
57
|
+
}] } });
|
|
58
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hvLW1vZGFsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1jaG8tY29tcG9uZW50cy9zcmMvbGliL2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gIDxoMiBpZD1cIm1vZGFsLWJhc2ljLXRpdGxlXCIgY2xhc3M9XCJtb2RhbC10aXRsZVwiPnt7IHRpdGxlIH19PC9oMj5cbiAgICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgICAgICAoY2xpY2spPVwiYWN0aXZlTW9kYWwuZGlzbWlzcygpXCJcbiAgICAgICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICAgICAgICAgICAgICBjbGFzcz1cImJ0biBidG4tbGlnaHQgcHktMSBweC0zIGZhLXNvbGlkIGZhLXhcIj48L2J1dHRvbj5cbiAgICAgICAgPC9kaXY+XG5cbiAgICAgICAgPGRpdiBjbGFzcz1cIm1vZGFsLWJvZHlcIj5cbiAgICAgICAgICAgIDxuZy1jb250ZW50PjwvbmctY29udGVudD5cbiAgICAgICAgPC9kaXY+XG5cbiAgICAgICAgPGRpdiBjbGFzcz1cIm1vZGFsLWZvb3RlclwiPlxuICAgICAgICAgICAgPG5nLWNvbnRlbnQgI2Zvb3RlciBzZWxlY3Q9XCJbZm9vdGVyXVwiPjwvbmctY29udGVudD5cbiAgICAgICAgPC9kaXY+XG4gICAgYCxcbiAgICBzdGFuZGFsb25lOiB0cnVlLFxuICAgIHByb3ZpZGVyczogW05nYkFjdGl2ZU1vZGFsXSxcbn0pXG5leHBvcnQgY2xhc3MgQ2hvTW9kYWxDb21wb25lbnQge1xuICAgIEBJbnB1dCgpXG4gICAgdGl0bGUhOiBzdHJpbmc7XG5cbiAgICBAQ29udGVudENoaWxkKCdmb290ZXInKVxuICAgIGZpbHRlcnM6IFRlbXBsYXRlUmVmPHVua25vd24+IHwgdW5kZWZpbmVkO1xuXG4gICAgY29uc3RydWN0b3IocHVibGljIHJlYWRvbmx5IGFjdGl2ZU1vZGFsOiBOZ2JBY3RpdmVNb2RhbCkge31cbn1cbiJdfQ==
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { NgIf } from '@angular/common';
|
|
2
|
+
import { Component, Input } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class ChoPhoneInfoComponent {
|
|
5
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoPhoneInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ChoPhoneInfoComponent, isStandalone: true, selector: "cho-phone-info", inputs: { phone: "phone" }, ngImport: i0, template: ` <ng-container *ngIf="phone; else empty"
|
|
7
|
+
><span *ngIf="phone.phoneTypeCode">{{ phone.phoneTypeCode[0] }}: </span>
|
|
8
|
+
{{ phone.phoneNumber }}
|
|
9
|
+
<small *ngIf="phone.description"> ({{ phone.description }})</small></ng-container
|
|
10
|
+
>
|
|
11
|
+
<ng-template #empty><span>--</span></ng-template>`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
12
|
+
}
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoPhoneInfoComponent, decorators: [{
|
|
14
|
+
type: Component,
|
|
15
|
+
args: [{
|
|
16
|
+
selector: 'cho-phone-info',
|
|
17
|
+
template: ` <ng-container *ngIf="phone; else empty"
|
|
18
|
+
><span *ngIf="phone.phoneTypeCode">{{ phone.phoneTypeCode[0] }}: </span>
|
|
19
|
+
{{ phone.phoneNumber }}
|
|
20
|
+
<small *ngIf="phone.description"> ({{ phone.description }})</small></ng-container
|
|
21
|
+
>
|
|
22
|
+
<ng-template #empty><span>--</span></ng-template>`,
|
|
23
|
+
standalone: true,
|
|
24
|
+
imports: [NgIf],
|
|
25
|
+
}]
|
|
26
|
+
}], propDecorators: { phone: [{
|
|
27
|
+
type: Input
|
|
28
|
+
}] } });
|
|
29
|
+
//# sourceMappingURL=data:application/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5nSWY9XCJwaG9uZS5waG9uZVR5cGVDb2RlXCI+e3sgcGhvbmUucGhvbmVUeXBlQ29kZVswXSB9fTogPC9zcGFuPlxuICAgICAgICAgICAge3sgcGhvbmUucGhvbmVOdW1iZXIgfX1cbiAgICAgICAgICAgIDxzbWFsbCAqbmdJZj1cInBob25lLmRlc2NyaXB0aW9uXCI+ICh7eyBwaG9uZS5kZXNjcmlwdGlvbiB9fSk8L3NtYWxsPjwvbmctY29udGFpbmVyXG4gICAgICAgID5cbiAgICAgICAgPG5nLXRlbXBsYXRlICNlbXB0eT48c3Bhbj4tLTwvc3Bhbj48L25nLXRlbXBsYXRlPmAsXG4gICAgc3RhbmRhbG9uZTogdHJ1ZSxcbiAgICBpbXBvcnRzOiBbTmdJZl0sXG59KVxuZXhwb3J0IGNsYXNzIENob1Bob25lSW5mb0NvbXBvbmVudCB7XG4gICAgQElucHV0KCkgcGhvbmUhOiBJUGhvbmVJbmZvO1xufVxuIl19
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { NgFor } from '@angular/common';
|
|
2
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/forms";
|
|
6
|
+
export class ChoRadioGroupComponent {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.label = '';
|
|
9
|
+
this.options = [];
|
|
10
|
+
this.groupName = '';
|
|
11
|
+
this.defaultValue = null;
|
|
12
|
+
this.selectionChange = new EventEmitter();
|
|
13
|
+
this.selectedOption = this.defaultValue;
|
|
14
|
+
}
|
|
15
|
+
emitSelection() {
|
|
16
|
+
if (this.selectedOption !== undefined) {
|
|
17
|
+
this.selectionChange.emit(this.selectedOption);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoRadioGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
21
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ChoRadioGroupComponent, isStandalone: true, selector: "cho-radio-group", inputs: { label: "label", options: "options", groupName: "groupName", defaultValue: "defaultValue" }, outputs: { selectionChange: "selectionChange" }, ngImport: i0, template: `
|
|
22
|
+
<div>
|
|
23
|
+
<label class="form-label">{{ label }}</label>
|
|
24
|
+
<div *ngFor="let option of options" class="form-check form-check-inline">
|
|
25
|
+
<input
|
|
26
|
+
class="form-check-input"
|
|
27
|
+
type="radio"
|
|
28
|
+
[name]="groupName"
|
|
29
|
+
[value]="option.value"
|
|
30
|
+
[(ngModel)]="selectedOption"
|
|
31
|
+
(change)="emitSelection()" />
|
|
32
|
+
{{ option.label }}
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
36
|
+
}
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoRadioGroupComponent, decorators: [{
|
|
38
|
+
type: Component,
|
|
39
|
+
args: [{
|
|
40
|
+
selector: 'cho-radio-group',
|
|
41
|
+
template: `
|
|
42
|
+
<div>
|
|
43
|
+
<label class="form-label">{{ label }}</label>
|
|
44
|
+
<div *ngFor="let option of options" class="form-check form-check-inline">
|
|
45
|
+
<input
|
|
46
|
+
class="form-check-input"
|
|
47
|
+
type="radio"
|
|
48
|
+
[name]="groupName"
|
|
49
|
+
[value]="option.value"
|
|
50
|
+
[(ngModel)]="selectedOption"
|
|
51
|
+
(change)="emitSelection()" />
|
|
52
|
+
{{ option.label }}
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
`,
|
|
56
|
+
standalone: true,
|
|
57
|
+
imports: [NgFor, FormsModule],
|
|
58
|
+
}]
|
|
59
|
+
}], propDecorators: { label: [{
|
|
60
|
+
type: Input
|
|
61
|
+
}], options: [{
|
|
62
|
+
type: Input
|
|
63
|
+
}], groupName: [{
|
|
64
|
+
type: Input
|
|
65
|
+
}], defaultValue: [{
|
|
66
|
+
type: Input
|
|
67
|
+
}], selectionChange: [{
|
|
68
|
+
type: Output
|
|
69
|
+
}] } });
|
|
70
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hvLXJhZGlvLWdyb3VwLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1jaG8tY29tcG9uZW50cy9zcmMvbGliL2Noby1yYWRpby1ncm91cC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ3hDLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDdkUsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFN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3J0IHsgQ29tcG9uZW50LCBFdmVudEVtaXR0ZXIsIElucHV0LCBPdXRwdXQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IEZvcm1zTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvZm9ybXMnO1xuXG5AQ29tcG9uZW50KHtcbiAgICBzZWxlY3RvcjogJ2Noby1yYWRpby1ncm91cCcsXG4gICAgdGVtcGxhdGU6IGBcbiAgICAgICAgPGRpdj5cbiAgICAgICAgICAgIDxsYWJlbCBjbGFzcz1cImZvcm0tbGFiZWxcIj57eyBsYWJlbCB9fTwvbGFiZWw+XG4gICAgICAgICAgICA8ZGl2ICpuZ0Zvcj1cImxldCBvcHRpb24gb2Ygb3B0aW9uc1wiIGNsYXNzPVwiZm9ybS1jaGVjayBmb3JtLWNoZWNrLWlubGluZVwiPlxuICAgICAgICAgICAgICAgIDxpbnB1dFxuICAgICAgICAgICAgICAgICAgICBjbGFzcz1cImZvcm0tY2hlY2staW5wdXRcIlxuICAgICAgICAgICAgICAgICAgICB0eXBlPVwicmFkaW9cIlxuICAgICAgICAgICAgICAgICAgICBbbmFtZV09XCJncm91cE5hbWVcIlxuICAgICAgICAgICAgICAgICAgICBbdmFsdWVdPVwib3B0aW9uLnZhbHVlXCJcbiAgICAgICAgICAgICAgICAgICAgWyhuZ01vZGVsKV09XCJzZWxlY3RlZE9wdGlvblwiXG4gICAgICAgICAgICAgICAgICAgIChjaGFuZ2UpPVwiZW1pdFNlbGVjdGlvbigpXCIgLz5cbiAgICAgICAgICAgICAgICB7eyBvcHRpb24ubGFiZWwgfX1cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICA8L2Rpdj5cbiAgICBgLFxuICAgIHN0YW5kYWxvbmU6IHRydWUsXG4gICAgaW1wb3J0czogW05nRm9yLCBGb3Jtc01vZHVsZV0sXG59KVxuZXhwb3J0IGNsYXNzIENob1JhZGlvR3JvdXBDb21wb25lbnQ8VD4ge1xuICAgIEBJbnB1dCgpIGxhYmVsID0gJyc7XG4gICAgQElucHV0KCkgb3B0aW9uczogeyBsYWJlbDogc3RyaW5nOyB2YWx1ZTogdW5rbm93biB9W10gPSBbXTtcbiAgICBASW5wdXQoKSBncm91cE5hbWUgPSAnJztcbiAgICBASW5wdXQoKSBkZWZhdWx0VmFsdWU6IFQgfCBudWxsID0gbnVsbDtcblxuICAgIEBPdXRwdXQoKSBzZWxlY3Rpb25DaGFuZ2UgPSBuZXcgRXZlbnRFbWl0dGVyPFQgfCBudWxsPigpO1xuXG4gICAgcHVibGljIHNlbGVjdGVkT3B0aW9uOiBUIHwgbnVsbCA9IHRoaXMuZGVmYXVsdFZhbHVlO1xuXG4gICAgcHVibGljIGVtaXRTZWxlY3Rpb24oKSB7XG4gICAgICAgIGlmICh0aGlzLnNlbGVjdGVkT3B0aW9uICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIHRoaXMuc2VsZWN0aW9uQ2hhbmdlLmVtaXQodGhpcy5zZWxlY3RlZE9wdGlvbik7XG4gICAgICAgIH1cbiAgICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DatePipe, NgIf } from '@angular/common';
|
|
2
|
+
import { Component, Input } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class ChoReviewStatusAlertComponent {
|
|
5
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoReviewStatusAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ChoReviewStatusAlertComponent, isStandalone: true, selector: "cho-review-status-alert", inputs: { reviewedBy: "reviewedBy", reviewedDateTime: "reviewedDateTime" }, ngImport: i0, template: `
|
|
7
|
+
<div class="alert alert-info" *ngIf="reviewedDateTime">
|
|
8
|
+
Review completed by {{ reviewedBy }} on {{ reviewedDateTime | date : 'shortDate' }} at
|
|
9
|
+
{{ reviewedDateTime | date : 'shortTime' }}.
|
|
10
|
+
</div>
|
|
11
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: DatePipe, name: "date" }] }); }
|
|
12
|
+
}
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoReviewStatusAlertComponent, decorators: [{
|
|
14
|
+
type: Component,
|
|
15
|
+
args: [{
|
|
16
|
+
selector: 'cho-review-status-alert',
|
|
17
|
+
template: `
|
|
18
|
+
<div class="alert alert-info" *ngIf="reviewedDateTime">
|
|
19
|
+
Review completed by {{ reviewedBy }} on {{ reviewedDateTime | date : 'shortDate' }} at
|
|
20
|
+
{{ reviewedDateTime | date : 'shortTime' }}.
|
|
21
|
+
</div>
|
|
22
|
+
`,
|
|
23
|
+
standalone: true,
|
|
24
|
+
imports: [NgIf, DatePipe],
|
|
25
|
+
}]
|
|
26
|
+
}], propDecorators: { reviewedBy: [{
|
|
27
|
+
type: Input
|
|
28
|
+
}], reviewedDateTime: [{
|
|
29
|
+
type: Input
|
|
30
|
+
}] } });
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hvLXJldmlldy1zdGF0dXMtYWxlcnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LWNoby1jb21wb25lbnRzL3NyYy9saWIvY2hvLXJldmlldy1zdGF0dXMtYWxlcnQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsSUFBSSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDakQsT0FBTyxFQUFFLFNBQ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gICBpbXBvcnRzOiBbTmdJZiwgRGF0ZVBpcGVdLFxufSlcbmV4cG9ydCBjbGFzcyBDaG9SZXZpZXdTdGF0dXNBbGVydENvbXBvbmVudCB7XG4gICAgQElucHV0KCkgcmV2aWV3ZWRCeTogc3RyaW5nIHwgdW5kZWZpbmVkO1xuICAgIEBJbnB1dCgpIHJldmlld2VkRGF0ZVRpbWU6IHN0cmluZyB8IHVuZGVmaW5lZDtcbn1cbiJdfQ==
|
package/esm2022/lib/index.mjs
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
export { ChoAddressInfoComponent } from './cho-address-info.component';
|
|
2
|
-
|
|
2
|
+
export { ChoDetailsCardComponent } from './cho-details-card.component';
|
|
3
|
+
export { ChoEmailInfoComponent } from './cho-email-info.component';
|
|
4
|
+
export { ChoModalComponent } from './cho-modal.component';
|
|
5
|
+
export { ChoPhoneInfoComponent } from './cho-phone-info.component';
|
|
6
|
+
export { ChoRadioGroupComponent } from './cho-radio-group.component';
|
|
7
|
+
export { ChoReviewStatusAlertComponent } from './cho-review-status-alert.component';
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtY2hvLWNvbXBvbmVudHMvc3JjL2xpYi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQztBQUN2RSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQztBQUN2RSxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQztBQUNuRSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUMxRCxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQztBQUNuRSxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUNyRSxPQUFPLEVBQUUsNkJBQTZCLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IENob0FkZHJlc3NJbmZvQ29tcG9uZW50IH0gZnJvbSAnLi9jaG8tYWRkcmVzcy1pbmZvLmNvbXBvbmVudCc7XG5leHBvcnQgeyBDaG9EZXRhaWxzQ2FyZENvbXBvbmVudCB9IGZyb20gJy4vY2hvLWRldGFpbHMtY2FyZC5jb21wb25lbnQnO1xuZXhwb3J0IHsgQ2hvRW1haWxJbmZvQ29tcG9uZW50IH0gZnJvbSAnLi9jaG8tZW1haWwtaW5mby5jb21wb25lbnQnO1xuZXhwb3J0IHsgQ2hvTW9kYWxDb21wb25lbnQgfSBmcm9tICcuL2Noby1tb2RhbC5jb21wb25lbnQnO1xuZXhwb3J0IHsgQ2hvUGhvbmVJbmZvQ29tcG9uZW50IH0gZnJvbSAnLi9jaG8tcGhvbmUtaW5mby5jb21wb25lbnQnO1xuZXhwb3J0IHsgQ2hvUmFkaW9Hcm91cENvbXBvbmVudCB9IGZyb20gJy4vY2hvLXJhZGlvLWdyb3VwLmNvbXBvbmVudCc7XG5leHBvcnQgeyBDaG9SZXZpZXdTdGF0dXNBbGVydENvbXBvbmVudCB9IGZyb20gJy4vY2hvLXJldmlldy1zdGF0dXMtYWxlcnQuY29tcG9uZW50JztcbiJdfQ==
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Input } from '@angular/core';
|
|
3
|
-
import { TitleCasePipe, NgIf } from '@angular/common';
|
|
2
|
+
import { Component, Input, ContentChild, EventEmitter, Output } from '@angular/core';
|
|
3
|
+
import { TitleCasePipe, NgIf, NgFor, DatePipe } from '@angular/common';
|
|
4
|
+
import * as i1 from '@angular/platform-browser';
|
|
5
|
+
import * as i1$1 from '@ng-bootstrap/ng-bootstrap';
|
|
6
|
+
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
|
|
7
|
+
import * as i1$2 from '@angular/forms';
|
|
8
|
+
import { FormsModule } from '@angular/forms';
|
|
4
9
|
|
|
5
10
|
class ChoAddressInfoComponent {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.address = {};
|
|
8
|
-
}
|
|
9
11
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoAddressInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10
12
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ChoAddressInfoComponent, isStandalone: true, selector: "cho-address-info", inputs: { address: "address" }, ngImport: i0, template: `<p *ngIf="address.addressLine1" class="m-0">
|
|
11
13
|
{{ address.addressLine1 | titlecase }}
|
|
@@ -39,6 +41,261 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
39
41
|
type: Input
|
|
40
42
|
}] } });
|
|
41
43
|
|
|
44
|
+
class ChoDetailsCardComponent {
|
|
45
|
+
constructor() {
|
|
46
|
+
this.title = '';
|
|
47
|
+
this.toolbar = null;
|
|
48
|
+
}
|
|
49
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoDetailsCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
50
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ChoDetailsCardComponent, isStandalone: true, selector: "cho-details-card", inputs: { title: "title" }, queries: [{ propertyName: "toolbar", first: true, predicate: ["toolbar"], descendants: true }], ngImport: i0, template: `
|
|
51
|
+
<div class="card mb-3">
|
|
52
|
+
<div class="card-header">
|
|
53
|
+
<h3 class="card-title">{{ title }}</h3>
|
|
54
|
+
|
|
55
|
+
<div class="card-toolbar">
|
|
56
|
+
<ng-content #toolbar select="[toolbar]"></ng-content>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
<div class="card-body">
|
|
61
|
+
<ng-content></ng-content>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
`, isInline: true }); }
|
|
65
|
+
}
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoDetailsCardComponent, decorators: [{
|
|
67
|
+
type: Component,
|
|
68
|
+
args: [{
|
|
69
|
+
selector: 'cho-details-card',
|
|
70
|
+
standalone: true,
|
|
71
|
+
template: `
|
|
72
|
+
<div class="card mb-3">
|
|
73
|
+
<div class="card-header">
|
|
74
|
+
<h3 class="card-title">{{ title }}</h3>
|
|
75
|
+
|
|
76
|
+
<div class="card-toolbar">
|
|
77
|
+
<ng-content #toolbar select="[toolbar]"></ng-content>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
|
|
81
|
+
<div class="card-body">
|
|
82
|
+
<ng-content></ng-content>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
`,
|
|
86
|
+
}]
|
|
87
|
+
}], propDecorators: { title: [{
|
|
88
|
+
type: Input
|
|
89
|
+
}], toolbar: [{
|
|
90
|
+
type: ContentChild,
|
|
91
|
+
args: ['toolbar']
|
|
92
|
+
}] } });
|
|
93
|
+
|
|
94
|
+
class ChoEmailInfoComponent {
|
|
95
|
+
constructor(sanitizer) {
|
|
96
|
+
this.sanitizer = sanitizer;
|
|
97
|
+
this.sanitizedEmailLink = this.email?.emailAddress
|
|
98
|
+
? this.sanitizer.bypassSecurityTrustUrl(`mailto:${this.email.emailAddress}`)
|
|
99
|
+
: '';
|
|
100
|
+
}
|
|
101
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoEmailInfoComponent, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
102
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ChoEmailInfoComponent, isStandalone: true, selector: "cho-email-info", inputs: { email: "email" }, ngImport: i0, template: `<ng-container *ngIf="email; else empty"
|
|
103
|
+
><span *ngIf="email.emailTypeCode">{{ email.emailTypeCode[0] }}: </span>
|
|
104
|
+
<a [href]="sanitizedEmailLink">{{ email.emailAddress }}</a>
|
|
105
|
+
<small *ngIf="email.description"> ({{ email.description }})</small></ng-container
|
|
106
|
+
>
|
|
107
|
+
<ng-template #empty><span>--</span></ng-template>`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
108
|
+
}
|
|
109
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoEmailInfoComponent, decorators: [{
|
|
110
|
+
type: Component,
|
|
111
|
+
args: [{
|
|
112
|
+
selector: 'cho-email-info',
|
|
113
|
+
template: `<ng-container *ngIf="email; else empty"
|
|
114
|
+
><span *ngIf="email.emailTypeCode">{{ email.emailTypeCode[0] }}: </span>
|
|
115
|
+
<a [href]="sanitizedEmailLink">{{ email.emailAddress }}</a>
|
|
116
|
+
<small *ngIf="email.description"> ({{ email.description }})</small></ng-container
|
|
117
|
+
>
|
|
118
|
+
<ng-template #empty><span>--</span></ng-template>`,
|
|
119
|
+
standalone: true,
|
|
120
|
+
imports: [NgIf],
|
|
121
|
+
}]
|
|
122
|
+
}], ctorParameters: () => [{ type: i1.DomSanitizer }], propDecorators: { email: [{
|
|
123
|
+
type: Input
|
|
124
|
+
}] } });
|
|
125
|
+
|
|
126
|
+
class ChoModalComponent {
|
|
127
|
+
constructor(activeModal) {
|
|
128
|
+
this.activeModal = activeModal;
|
|
129
|
+
}
|
|
130
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoModalComponent, deps: [{ token: i1$1.NgbActiveModal }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
131
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ChoModalComponent, isStandalone: true, selector: "cho-modal", inputs: { title: "title" }, providers: [NgbActiveModal], queries: [{ propertyName: "filters", first: true, predicate: ["footer"], descendants: true }], ngImport: i0, template: `
|
|
132
|
+
<div class="modal-header">
|
|
133
|
+
<h2 id="modal-basic-title" class="modal-title">{{ title }}</h2>
|
|
134
|
+
<button
|
|
135
|
+
(click)="activeModal.dismiss()"
|
|
136
|
+
type="button"
|
|
137
|
+
class="btn btn-light py-1 px-3 fa-solid fa-x"></button>
|
|
138
|
+
</div>
|
|
139
|
+
|
|
140
|
+
<div class="modal-body">
|
|
141
|
+
<ng-content></ng-content>
|
|
142
|
+
</div>
|
|
143
|
+
|
|
144
|
+
<div class="modal-footer">
|
|
145
|
+
<ng-content #footer select="[footer]"></ng-content>
|
|
146
|
+
</div>
|
|
147
|
+
`, isInline: true }); }
|
|
148
|
+
}
|
|
149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoModalComponent, decorators: [{
|
|
150
|
+
type: Component,
|
|
151
|
+
args: [{
|
|
152
|
+
selector: 'cho-modal',
|
|
153
|
+
template: `
|
|
154
|
+
<div class="modal-header">
|
|
155
|
+
<h2 id="modal-basic-title" class="modal-title">{{ title }}</h2>
|
|
156
|
+
<button
|
|
157
|
+
(click)="activeModal.dismiss()"
|
|
158
|
+
type="button"
|
|
159
|
+
class="btn btn-light py-1 px-3 fa-solid fa-x"></button>
|
|
160
|
+
</div>
|
|
161
|
+
|
|
162
|
+
<div class="modal-body">
|
|
163
|
+
<ng-content></ng-content>
|
|
164
|
+
</div>
|
|
165
|
+
|
|
166
|
+
<div class="modal-footer">
|
|
167
|
+
<ng-content #footer select="[footer]"></ng-content>
|
|
168
|
+
</div>
|
|
169
|
+
`,
|
|
170
|
+
standalone: true,
|
|
171
|
+
providers: [NgbActiveModal],
|
|
172
|
+
}]
|
|
173
|
+
}], ctorParameters: () => [{ type: i1$1.NgbActiveModal }], propDecorators: { title: [{
|
|
174
|
+
type: Input
|
|
175
|
+
}], filters: [{
|
|
176
|
+
type: ContentChild,
|
|
177
|
+
args: ['footer']
|
|
178
|
+
}] } });
|
|
179
|
+
|
|
180
|
+
class ChoPhoneInfoComponent {
|
|
181
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoPhoneInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
182
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ChoPhoneInfoComponent, isStandalone: true, selector: "cho-phone-info", inputs: { phone: "phone" }, ngImport: i0, template: ` <ng-container *ngIf="phone; else empty"
|
|
183
|
+
><span *ngIf="phone.phoneTypeCode">{{ phone.phoneTypeCode[0] }}: </span>
|
|
184
|
+
{{ phone.phoneNumber }}
|
|
185
|
+
<small *ngIf="phone.description"> ({{ phone.description }})</small></ng-container
|
|
186
|
+
>
|
|
187
|
+
<ng-template #empty><span>--</span></ng-template>`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
188
|
+
}
|
|
189
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoPhoneInfoComponent, decorators: [{
|
|
190
|
+
type: Component,
|
|
191
|
+
args: [{
|
|
192
|
+
selector: 'cho-phone-info',
|
|
193
|
+
template: ` <ng-container *ngIf="phone; else empty"
|
|
194
|
+
><span *ngIf="phone.phoneTypeCode">{{ phone.phoneTypeCode[0] }}: </span>
|
|
195
|
+
{{ phone.phoneNumber }}
|
|
196
|
+
<small *ngIf="phone.description"> ({{ phone.description }})</small></ng-container
|
|
197
|
+
>
|
|
198
|
+
<ng-template #empty><span>--</span></ng-template>`,
|
|
199
|
+
standalone: true,
|
|
200
|
+
imports: [NgIf],
|
|
201
|
+
}]
|
|
202
|
+
}], propDecorators: { phone: [{
|
|
203
|
+
type: Input
|
|
204
|
+
}] } });
|
|
205
|
+
|
|
206
|
+
class ChoRadioGroupComponent {
|
|
207
|
+
constructor() {
|
|
208
|
+
this.label = '';
|
|
209
|
+
this.options = [];
|
|
210
|
+
this.groupName = '';
|
|
211
|
+
this.defaultValue = null;
|
|
212
|
+
this.selectionChange = new EventEmitter();
|
|
213
|
+
this.selectedOption = this.defaultValue;
|
|
214
|
+
}
|
|
215
|
+
emitSelection() {
|
|
216
|
+
if (this.selectedOption !== undefined) {
|
|
217
|
+
this.selectionChange.emit(this.selectedOption);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoRadioGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
221
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ChoRadioGroupComponent, isStandalone: true, selector: "cho-radio-group", inputs: { label: "label", options: "options", groupName: "groupName", defaultValue: "defaultValue" }, outputs: { selectionChange: "selectionChange" }, ngImport: i0, template: `
|
|
222
|
+
<div>
|
|
223
|
+
<label class="form-label">{{ label }}</label>
|
|
224
|
+
<div *ngFor="let option of options" class="form-check form-check-inline">
|
|
225
|
+
<input
|
|
226
|
+
class="form-check-input"
|
|
227
|
+
type="radio"
|
|
228
|
+
[name]="groupName"
|
|
229
|
+
[value]="option.value"
|
|
230
|
+
[(ngModel)]="selectedOption"
|
|
231
|
+
(change)="emitSelection()" />
|
|
232
|
+
{{ option.label }}
|
|
233
|
+
</div>
|
|
234
|
+
</div>
|
|
235
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$2.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
236
|
+
}
|
|
237
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoRadioGroupComponent, decorators: [{
|
|
238
|
+
type: Component,
|
|
239
|
+
args: [{
|
|
240
|
+
selector: 'cho-radio-group',
|
|
241
|
+
template: `
|
|
242
|
+
<div>
|
|
243
|
+
<label class="form-label">{{ label }}</label>
|
|
244
|
+
<div *ngFor="let option of options" class="form-check form-check-inline">
|
|
245
|
+
<input
|
|
246
|
+
class="form-check-input"
|
|
247
|
+
type="radio"
|
|
248
|
+
[name]="groupName"
|
|
249
|
+
[value]="option.value"
|
|
250
|
+
[(ngModel)]="selectedOption"
|
|
251
|
+
(change)="emitSelection()" />
|
|
252
|
+
{{ option.label }}
|
|
253
|
+
</div>
|
|
254
|
+
</div>
|
|
255
|
+
`,
|
|
256
|
+
standalone: true,
|
|
257
|
+
imports: [NgFor, FormsModule],
|
|
258
|
+
}]
|
|
259
|
+
}], propDecorators: { label: [{
|
|
260
|
+
type: Input
|
|
261
|
+
}], options: [{
|
|
262
|
+
type: Input
|
|
263
|
+
}], groupName: [{
|
|
264
|
+
type: Input
|
|
265
|
+
}], defaultValue: [{
|
|
266
|
+
type: Input
|
|
267
|
+
}], selectionChange: [{
|
|
268
|
+
type: Output
|
|
269
|
+
}] } });
|
|
270
|
+
|
|
271
|
+
class ChoReviewStatusAlertComponent {
|
|
272
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoReviewStatusAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
273
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ChoReviewStatusAlertComponent, isStandalone: true, selector: "cho-review-status-alert", inputs: { reviewedBy: "reviewedBy", reviewedDateTime: "reviewedDateTime" }, ngImport: i0, template: `
|
|
274
|
+
<div class="alert alert-info" *ngIf="reviewedDateTime">
|
|
275
|
+
Review completed by {{ reviewedBy }} on {{ reviewedDateTime | date : 'shortDate' }} at
|
|
276
|
+
{{ reviewedDateTime | date : 'shortTime' }}.
|
|
277
|
+
</div>
|
|
278
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: DatePipe, name: "date" }] }); }
|
|
279
|
+
}
|
|
280
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoReviewStatusAlertComponent, decorators: [{
|
|
281
|
+
type: Component,
|
|
282
|
+
args: [{
|
|
283
|
+
selector: 'cho-review-status-alert',
|
|
284
|
+
template: `
|
|
285
|
+
<div class="alert alert-info" *ngIf="reviewedDateTime">
|
|
286
|
+
Review completed by {{ reviewedBy }} on {{ reviewedDateTime | date : 'shortDate' }} at
|
|
287
|
+
{{ reviewedDateTime | date : 'shortTime' }}.
|
|
288
|
+
</div>
|
|
289
|
+
`,
|
|
290
|
+
standalone: true,
|
|
291
|
+
imports: [NgIf, DatePipe],
|
|
292
|
+
}]
|
|
293
|
+
}], propDecorators: { reviewedBy: [{
|
|
294
|
+
type: Input
|
|
295
|
+
}], reviewedDateTime: [{
|
|
296
|
+
type: Input
|
|
297
|
+
}] } });
|
|
298
|
+
|
|
42
299
|
/*
|
|
43
300
|
* Public API Surface of ngx-cho-components
|
|
44
301
|
*/
|
|
@@ -47,5 +304,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
47
304
|
* Generated bundle index. Do not edit.
|
|
48
305
|
*/
|
|
49
306
|
|
|
50
|
-
export { ChoAddressInfoComponent };
|
|
307
|
+
export { ChoAddressInfoComponent, ChoDetailsCardComponent, ChoEmailInfoComponent, ChoModalComponent, ChoPhoneInfoComponent, ChoRadioGroupComponent, ChoReviewStatusAlertComponent };
|
|
51
308
|
//# sourceMappingURL=ngx-cho-components.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-cho-components.mjs","sources":["../../../projects/ngx-cho-components/src/lib/cho-address-info.component.ts","../../../projects/ngx-cho-components/src/public-api.ts","../../../projects/ngx-cho-components/src/ngx-cho-components.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\nimport { IAddress } from 'ngx-cho-models';\nimport { NgIf, TitleCasePipe } from '@angular/common';\n\n@Component({\n selector: 'cho-address-info',\n template: `<p *ngIf=\"address.addressLine1\" class=\"m-0\">\n {{ address.addressLine1 | titlecase }}\n </p>\n <p *ngIf=\"address.addressLine2\" class=\"m-0\">\n {{ address.addressLine2 | titlecase }}\n </p>\n <p *ngIf=\"address.city\" class=\"m-0\">\n {{ address.city | titlecase }}, {{ address.stateProvinceCode }}\n {{ address.postalCode }}\n </p> `,\n standalone: true,\n imports: [TitleCasePipe, NgIf],\n})\nexport class ChoAddressInfoComponent {\n @Input() address: IAddress = {} as IAddress;\n}\n","/*\n * Public API Surface of ngx-cho-components\n */\n\nexport * from './lib';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAmBa,uBAAuB,CAAA;AAfpC,IAAA,WAAA,GAAA;QAgBa,IAAO,CAAA,OAAA,GAAa,EAAc,CAAC;AAC/C,KAAA;+GAFY,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAvB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,uBAAuB,EAbtB,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;cASA,EAEA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,aAAa,kDAAE,IAAI,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAEpB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAfnC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;AASA,aAAA,CAAA;AACV,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE,CAAC,aAAa,EAAE,IAAI,CAAC;AACjC,iBAAA,CAAA;8BAEY,OAAO,EAAA,CAAA;sBAAf,KAAK;;;ACpBV;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-cho-components.mjs","sources":["../../../projects/ngx-cho-components/src/lib/cho-address-info.component.ts","../../../projects/ngx-cho-components/src/lib/cho-details-card.component.ts","../../../projects/ngx-cho-components/src/lib/cho-email-info.component.ts","../../../projects/ngx-cho-components/src/lib/cho-modal.component.ts","../../../projects/ngx-cho-components/src/lib/cho-phone-info.component.ts","../../../projects/ngx-cho-components/src/lib/cho-radio-group.component.ts","../../../projects/ngx-cho-components/src/lib/cho-review-status-alert.component.ts","../../../projects/ngx-cho-components/src/public-api.ts","../../../projects/ngx-cho-components/src/ngx-cho-components.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\nimport { IAddress } from 'ngx-cho-models';\nimport { NgIf, TitleCasePipe } from '@angular/common';\n\n@Component({\n selector: 'cho-address-info',\n template: `<p *ngIf=\"address.addressLine1\" class=\"m-0\">\n {{ address.addressLine1 | titlecase }}\n </p>\n <p *ngIf=\"address.addressLine2\" class=\"m-0\">\n {{ address.addressLine2 | titlecase }}\n </p>\n <p *ngIf=\"address.city\" class=\"m-0\">\n {{ address.city | titlecase }}, {{ address.stateProvinceCode }}\n {{ address.postalCode }}\n </p> `,\n standalone: true,\n imports: [TitleCasePipe, NgIf],\n})\nexport class ChoAddressInfoComponent {\n @Input() address!: IAddress;\n}\n","import { Component, ContentChild, Input, TemplateRef } from '@angular/core';\n\n@Component({\n selector: 'cho-details-card',\n standalone: true,\n template: `\n <div class=\"card mb-3\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">{{ title }}</h3>\n\n <div class=\"card-toolbar\">\n <ng-content #toolbar select=\"[toolbar]\"></ng-content>\n </div>\n </div>\n\n <div class=\"card-body\">\n <ng-content></ng-content>\n </div>\n </div>\n `,\n})\nexport class ChoDetailsCardComponent {\n @Input() title = '';\n\n @ContentChild('toolbar') toolbar: TemplateRef<unknown> | null = null;\n}\n","import { NgIf } from '@angular/common';\nimport { Component, Input } from '@angular/core';\nimport { DomSanitizer, SafeUrl } from '@angular/platform-browser';\nimport { IEmailInfo } from 'ngx-cho-models';\n\n\n@Component({\n selector: 'cho-email-info',\n template: `<ng-container *ngIf=\"email; else empty\"\n ><span *ngIf=\"email.emailTypeCode\">{{ email.emailTypeCode[0] }}: </span>\n <a [href]=\"sanitizedEmailLink\">{{ email.emailAddress }}</a>\n <small *ngIf=\"email.description\"> ({{ email.description }})</small></ng-container\n >\n <ng-template #empty><span>--</span></ng-template>`,\n standalone: true,\n imports: [NgIf],\n})\nexport class ChoEmailInfoComponent {\n @Input() email!: IEmailInfo;\n\n public sanitizedEmailLink: SafeUrl;\n\n constructor(private sanitizer: DomSanitizer) {\n this.sanitizedEmailLink = this.email?.emailAddress\n ? this.sanitizer.bypassSecurityTrustUrl(`mailto:${this.email.emailAddress}`)\n : '';\n }\n}\n","import { Component, ContentChild, Input, TemplateRef } from '@angular/core';\nimport { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';\n\n@Component({\n selector: 'cho-modal',\n template: `\n <div class=\"modal-header\">\n <h2 id=\"modal-basic-title\" class=\"modal-title\">{{ title }}</h2>\n <button\n (click)=\"activeModal.dismiss()\"\n type=\"button\"\n class=\"btn btn-light py-1 px-3 fa-solid fa-x\"></button>\n </div>\n\n <div class=\"modal-body\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"modal-footer\">\n <ng-content #footer select=\"[footer]\"></ng-content>\n </div>\n `,\n standalone: true,\n providers: [NgbActiveModal],\n})\nexport class ChoModalComponent {\n @Input()\n title!: string;\n\n @ContentChild('footer')\n filters: TemplateRef<unknown> | undefined;\n\n constructor(public readonly activeModal: NgbActiveModal) {}\n}\n","import { NgIf } from '@angular/common';\nimport { Component, Input } from '@angular/core';\nimport { IPhoneInfo } from 'ngx-cho-models';\n\n\n@Component({\n selector: 'cho-phone-info',\n template: ` <ng-container *ngIf=\"phone; else empty\"\n ><span *ngIf=\"phone.phoneTypeCode\">{{ phone.phoneTypeCode[0] }}: </span>\n {{ phone.phoneNumber }}\n <small *ngIf=\"phone.description\"> ({{ phone.description }})</small></ng-container\n >\n <ng-template #empty><span>--</span></ng-template>`,\n standalone: true,\n imports: [NgIf],\n})\nexport class ChoPhoneInfoComponent {\n @Input() phone!: IPhoneInfo;\n}\n","import { NgFor } from '@angular/common';\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n@Component({\n selector: 'cho-radio-group',\n template: `\n <div>\n <label class=\"form-label\">{{ label }}</label>\n <div *ngFor=\"let option of options\" class=\"form-check form-check-inline\">\n <input\n class=\"form-check-input\"\n type=\"radio\"\n [name]=\"groupName\"\n [value]=\"option.value\"\n [(ngModel)]=\"selectedOption\"\n (change)=\"emitSelection()\" />\n {{ option.label }}\n </div>\n </div>\n `,\n standalone: true,\n imports: [NgFor, FormsModule],\n})\nexport class ChoRadioGroupComponent<T> {\n @Input() label = '';\n @Input() options: { label: string; value: unknown }[] = [];\n @Input() groupName = '';\n @Input() defaultValue: T | null = null;\n\n @Output() selectionChange = new EventEmitter<T | null>();\n\n public selectedOption: T | null = this.defaultValue;\n\n public emitSelection() {\n if (this.selectedOption !== undefined) {\n this.selectionChange.emit(this.selectedOption);\n }\n }\n}\n","import { DatePipe, NgIf } from '@angular/common';\nimport { Component, Input } from '@angular/core';\n\n@Component({\n selector: 'cho-review-status-alert',\n template: `\n <div class=\"alert alert-info\" *ngIf=\"reviewedDateTime\">\n Review completed by {{ reviewedBy }} on {{ reviewedDateTime | date : 'shortDate' }} at\n {{ reviewedDateTime | date : 'shortTime' }}.\n </div>\n `,\n standalone: true,\n imports: [NgIf, DatePipe],\n})\nexport class ChoReviewStatusAlertComponent {\n @Input() reviewedBy: string | undefined;\n @Input() reviewedDateTime: string | undefined;\n}\n","/*\n * Public API Surface of ngx-cho-components\n */\n\nexport * from './lib';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;;;MAmBa,uBAAuB,CAAA;+GAAvB,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AAA;;;;;AAKT,IAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC;AAC5B,iBAAA,CAAA;8BAEY,UAAU,EAAA,CAAA;sBAAlB,KAAK;gBACG,gBAAgB,EAAA,CAAA;sBAAxB,KAAK;;;AChBV;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ChoDetailsCardComponent {
|
|
4
|
+
title: string;
|
|
5
|
+
toolbar: TemplateRef<unknown> | null;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChoDetailsCardComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChoDetailsCardComponent, "cho-details-card", never, { "title": { "alias": "title"; "required": false; }; }, {}, ["toolbar"], ["[toolbar]", "*"], true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
|
|
2
|
+
import { IEmailInfo } from 'ngx-cho-models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ChoEmailInfoComponent {
|
|
5
|
+
private sanitizer;
|
|
6
|
+
email: IEmailInfo;
|
|
7
|
+
sanitizedEmailLink: SafeUrl;
|
|
8
|
+
constructor(sanitizer: DomSanitizer);
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChoEmailInfoComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChoEmailInfoComponent, "cho-email-info", never, { "email": { "alias": "email"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ChoModalComponent {
|
|
5
|
+
readonly activeModal: NgbActiveModal;
|
|
6
|
+
title: string;
|
|
7
|
+
filters: TemplateRef<unknown> | undefined;
|
|
8
|
+
constructor(activeModal: NgbActiveModal);
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChoModalComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChoModalComponent, "cho-modal", never, { "title": { "alias": "title"; "required": false; }; }, {}, ["filters"], ["*", "[footer]"], true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IPhoneInfo } from 'ngx-cho-models';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ChoPhoneInfoComponent {
|
|
4
|
+
phone: IPhoneInfo;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChoPhoneInfoComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChoPhoneInfoComponent, "cho-phone-info", never, { "phone": { "alias": "phone"; "required": false; }; }, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ChoRadioGroupComponent<T> {
|
|
4
|
+
label: string;
|
|
5
|
+
options: {
|
|
6
|
+
label: string;
|
|
7
|
+
value: unknown;
|
|
8
|
+
}[];
|
|
9
|
+
groupName: string;
|
|
10
|
+
defaultValue: T | null;
|
|
11
|
+
selectionChange: EventEmitter<T | null>;
|
|
12
|
+
selectedOption: T | null;
|
|
13
|
+
emitSelection(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChoRadioGroupComponent<any>, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChoRadioGroupComponent<any>, "cho-radio-group", never, { "label": { "alias": "label"; "required": false; }; "options": { "alias": "options"; "required": false; }; "groupName": { "alias": "groupName"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ChoReviewStatusAlertComponent {
|
|
3
|
+
reviewedBy: string | undefined;
|
|
4
|
+
reviewedDateTime: string | undefined;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChoReviewStatusAlertComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChoReviewStatusAlertComponent, "cho-review-status-alert", never, { "reviewedBy": { "alias": "reviewedBy"; "required": false; }; "reviewedDateTime": { "alias": "reviewedDateTime"; "required": false; }; }, {}, never, never, true, never>;
|
|
7
|
+
}
|
package/lib/index.d.ts
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
1
|
export { ChoAddressInfoComponent } from './cho-address-info.component';
|
|
2
|
+
export { ChoDetailsCardComponent } from './cho-details-card.component';
|
|
3
|
+
export { ChoEmailInfoComponent } from './cho-email-info.component';
|
|
4
|
+
export { ChoModalComponent } from './cho-modal.component';
|
|
5
|
+
export { ChoPhoneInfoComponent } from './cho-phone-info.component';
|
|
6
|
+
export { ChoRadioGroupComponent } from './cho-radio-group.component';
|
|
7
|
+
export { ChoReviewStatusAlertComponent } from './cho-review-status-alert.component';
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-cho-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^17.3.0",
|
|
6
6
|
"@angular/core": "^17.3.0",
|
|
7
|
-
"
|
|
7
|
+
"bootstrap": "^5.3.3",
|
|
8
|
+
"ngx-cho-models": "^0.0.1",
|
|
9
|
+
"@ng-bootstrap/ng-bootstrap": "^17.0.0"
|
|
8
10
|
},
|
|
9
11
|
"dependencies": {
|
|
10
12
|
"tslib": "^2.3.0"
|