ngx-cho-components 0.0.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/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # NgxChoComponents
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.3.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project ngx-cho-components` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project ngx-cho-components`.
8
+ > Note: Don't forget to add `--project ngx-cho-components` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build ngx-cho-components` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build ngx-cho-components`, go to the dist folder `cd dist/ngx-cho-components` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test ngx-cho-components` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
@@ -0,0 +1,40 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import { NgIf, TitleCasePipe } from '@angular/common';
3
+ import * as i0 from "@angular/core";
4
+ export class ChoAddressInfoComponent {
5
+ constructor() {
6
+ this.address = {};
7
+ }
8
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoAddressInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
9
+ 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
+ {{ address.addressLine1 | titlecase }}
11
+ </p>
12
+ <p *ngIf="address.addressLine2" class="m-0">
13
+ {{ address.addressLine2 | titlecase }}
14
+ </p>
15
+ <p *ngIf="address.city" class="m-0">
16
+ {{ address.city | titlecase }}, {{ address.stateProvinceCode }}
17
+ {{ address.postalCode }}
18
+ </p> `, isInline: true, dependencies: [{ kind: "pipe", type: TitleCasePipe, name: "titlecase" }, { 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: ChoAddressInfoComponent, decorators: [{
21
+ type: Component,
22
+ args: [{
23
+ selector: 'cho-address-info',
24
+ template: `<p *ngIf="address.addressLine1" class="m-0">
25
+ {{ address.addressLine1 | titlecase }}
26
+ </p>
27
+ <p *ngIf="address.addressLine2" class="m-0">
28
+ {{ address.addressLine2 | titlecase }}
29
+ </p>
30
+ <p *ngIf="address.city" class="m-0">
31
+ {{ address.city | titlecase }}, {{ address.stateProvinceCode }}
32
+ {{ address.postalCode }}
33
+ </p> `,
34
+ standalone: true,
35
+ imports: [TitleCasePipe, NgIf],
36
+ }]
37
+ }], propDecorators: { address: [{
38
+ type: Input
39
+ }] } });
40
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hvLWFkZHJlc3MtaW5mby5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtY2hvLWNvbXBvbmVudHMvc3JjL2xpYi9jaG8tYWRkcmVzcy1pbmZvLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUVqRCxPQUFPLEVBQUUsSUFBSSxFQUFFLGFBQWEsRUFBRSxNQUFNLGlCQUFpQixDQUFDOztBQWlCdEQsTUFBTSxPQU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cy5jaXR5XCIgY2xhc3M9XCJtLTBcIj5cbiAgICAgICAgICAgIHt7IGFkZHJlc3MuY2l0eSB8IHRpdGxlY2FzZSB9fSwge3sgYWRkcmVzcy5zdGF0ZVByb3ZpbmNlQ29kZSB9fVxuICAgICAgICAgICAge3sgYWRkcmVzcy5wb3N0YWxDb2RlIH19XG4gICAgICAgIDwvcD4gYCxcbiAgICBzdGFuZGFsb25lOiB0cnVlLFxuICAgIGltcG9ydHM6IFtUaXRsZUNhc2VQaXBlLCBOZ0lmXSxcbn0pXG5leHBvcnQgY2xhc3MgQ2hvQWRkcmVzc0luZm9Db21wb25lbnQge1xuICAgIEBJbnB1dCgpIGFkZHJlc3M6IElBZGRyZXNzID0ge30gYXMgSUFkZHJlc3M7XG59XG4iXX0=
@@ -0,0 +1,2 @@
1
+ export { ChoAddressInfoComponent } from './cho-address-info.component';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtY2hvLWNvbXBvbmVudHMvc3JjL2xpYi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IENob0FkZHJlc3NJbmZvQ29tcG9uZW50IH0gZnJvbSAnLi9jaG8tYWRkcmVzcy1pbmZvLmNvbXBvbmVudCc7XG4iXX0=
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public-api';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWNoby1jb21wb25lbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvbmd4LWNoby1jb21wb25lbnRzL3NyYy9uZ3gtY2hvLWNvbXBvbmVudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
@@ -0,0 +1,5 @@
1
+ /*
2
+ * Public API Surface of ngx-cho-components
3
+ */
4
+ export * from './lib';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL25neC1jaG8tY29tcG9uZW50cy9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsT0FBTyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBuZ3gtY2hvLWNvbXBvbmVudHNcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYic7XG4iXX0=
@@ -0,0 +1,51 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, Input } from '@angular/core';
3
+ import { TitleCasePipe, NgIf } from '@angular/common';
4
+
5
+ class ChoAddressInfoComponent {
6
+ constructor() {
7
+ this.address = {};
8
+ }
9
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoAddressInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
10
+ 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
+ {{ address.addressLine1 | titlecase }}
12
+ </p>
13
+ <p *ngIf="address.addressLine2" class="m-0">
14
+ {{ address.addressLine2 | titlecase }}
15
+ </p>
16
+ <p *ngIf="address.city" class="m-0">
17
+ {{ address.city | titlecase }}, {{ address.stateProvinceCode }}
18
+ {{ address.postalCode }}
19
+ </p> `, isInline: true, dependencies: [{ kind: "pipe", type: TitleCasePipe, name: "titlecase" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
20
+ }
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChoAddressInfoComponent, decorators: [{
22
+ type: Component,
23
+ args: [{
24
+ selector: 'cho-address-info',
25
+ template: `<p *ngIf="address.addressLine1" class="m-0">
26
+ {{ address.addressLine1 | titlecase }}
27
+ </p>
28
+ <p *ngIf="address.addressLine2" class="m-0">
29
+ {{ address.addressLine2 | titlecase }}
30
+ </p>
31
+ <p *ngIf="address.city" class="m-0">
32
+ {{ address.city | titlecase }}, {{ address.stateProvinceCode }}
33
+ {{ address.postalCode }}
34
+ </p> `,
35
+ standalone: true,
36
+ imports: [TitleCasePipe, NgIf],
37
+ }]
38
+ }], propDecorators: { address: [{
39
+ type: Input
40
+ }] } });
41
+
42
+ /*
43
+ * Public API Surface of ngx-cho-components
44
+ */
45
+
46
+ /**
47
+ * Generated bundle index. Do not edit.
48
+ */
49
+
50
+ export { ChoAddressInfoComponent };
51
+ //# sourceMappingURL=ngx-cho-components.mjs.map
@@ -0,0 +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;;;;"}
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="ngx-cho-components" />
5
+ export * from './public-api';
@@ -0,0 +1,7 @@
1
+ import { IAddress } from 'ngx-cho-models';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ChoAddressInfoComponent {
4
+ address: IAddress;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChoAddressInfoComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChoAddressInfoComponent, "cho-address-info", never, { "address": { "alias": "address"; "required": false; }; }, {}, never, never, true, never>;
7
+ }
package/lib/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export { ChoAddressInfoComponent } from './cho-address-info.component';
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "ngx-cho-components",
3
+ "version": "0.0.1",
4
+ "peerDependencies": {
5
+ "@angular/common": "^17.3.0",
6
+ "@angular/core": "^17.3.0",
7
+ "ngx-cho-models": "^0.0.1"
8
+ },
9
+ "dependencies": {
10
+ "tslib": "^2.3.0"
11
+ },
12
+ "sideEffects": false,
13
+ "module": "fesm2022/ngx-cho-components.mjs",
14
+ "typings": "index.d.ts",
15
+ "exports": {
16
+ "./package.json": {
17
+ "default": "./package.json"
18
+ },
19
+ ".": {
20
+ "types": "./index.d.ts",
21
+ "esm2022": "./esm2022/ngx-cho-components.mjs",
22
+ "esm": "./esm2022/ngx-cho-components.mjs",
23
+ "default": "./fesm2022/ngx-cho-components.mjs"
24
+ }
25
+ }
26
+ }
@@ -0,0 +1 @@
1
+ export * from './lib';