valtech-components 0.0.1 → 0.0.3

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 VALTECH LTDA.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,23 +1,83 @@
1
1
  # ValtechComponents
2
2
 
3
+ ValtechComponents is a set of reusable components designed for Ionic and Angular projects. These components are crafted to enhance development efficiency by providing ready-to-use solutions for a variety of applications.
4
+
5
+ ## Installation
6
+
7
+ To start using ValtechComponents in your Ionic or Angular project, simply follow these steps:
8
+
9
+ Install the package from npm:
10
+ ```
11
+ npm install @valtech/components
12
+ ```
13
+ Import the necessary component modules into your main module:
14
+
15
+ ``` ts
16
+ import { NgModule } from '@angular/core';
17
+ import { BrowserModule } from '@angular/platform-browser';
18
+ import { IonicModule } from '@ionic/angular';
19
+ import { ValtechComponentsModule } from '@valtech/components';
20
+
21
+ @NgModule({
22
+ declarations: [AppComponent],
23
+ imports: [BrowserModule, IonicModule.forRoot(), ValtechComponentsModule],
24
+ bootstrap: [AppComponent],
25
+ })
26
+ export class AppModule {}
27
+ ```
28
+
29
+ Use the components in your Angular or Ionic templates as you would with any other component.
30
+ Available Components
31
+
32
+ ## List of components
33
+
34
+ - CustomCardComponent
35
+
36
+
37
+ Each component comes with detailed documentation on how to use it and what input properties or events it supports.
38
+
39
+ ## Contribution
40
+
41
+ We welcome contributions! If you'd like to contribute to ValtechComponents, please follow these steps:
42
+
43
+ Fork the repository.
44
+ Create a branch with a descriptive name (git checkout -b my-new-feature).
45
+ Make your changes and ensure tests pass.
46
+ Commit your changes (git commit -am 'Add new feature').
47
+ Push to the branch (git push origin my-new-feature).
48
+ Create a new pull request.
49
+
50
+
51
+ ## Support
52
+ If you need help or have any questions about using ValtechComponents, please create an issue on the repository or contact us directly.
53
+
54
+ ## License
55
+
56
+ This project is licensed under the MIT License. For more details, please see the LICENSE file.
57
+
58
+
59
+
60
+ # Components development
61
+
62
+
3
63
  This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.3.0.
4
64
 
5
65
  ## Code scaffolding
6
66
 
7
- Run `ng generate component component-name --project valtech-components` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project valtech-components`.
8
- > Note: Don't forget to add `--project valtech-components` or else it will be added to the default project in your `angular.json` file.
67
+ Run `ng generate component component-name --project components` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project components`.
68
+ > Note: Don't forget to add `--project components` or else it will be added to the default project in your `angular.json` file.
9
69
 
10
70
  ## Build
11
71
 
12
- Run `ng build valtech-components` to build the project. The build artifacts will be stored in the `dist/` directory.
72
+ Run `ng build components` to build the project. The build artifacts will be stored in the `dist/` directory.
13
73
 
14
74
  ## Publishing
15
75
 
16
- After building your library with `ng build valtech-components`, go to the dist folder `cd dist/valtech-components` and run `npm publish`.
76
+ After building your library with `ng build components`, go to the dist folder `cd dist/components` and run `npm publish`.
17
77
 
18
78
  ## Running unit tests
19
79
 
20
- Run `ng test valtech-components` to execute the unit tests via [Karma](https://karma-runner.github.io).
80
+ Run `ng test components` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
81
 
22
82
  ## Further help
23
83
 
@@ -0,0 +1,20 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@ionic/angular";
4
+ export class CustomCardComponent {
5
+ constructor() {
6
+ this.title = '';
7
+ this.content = '';
8
+ }
9
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CustomCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
10
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: CustomCardComponent, selector: "val-custom-card", inputs: { title: "title", content: "content" }, ngImport: i0, template: "<ion-card>\n <ion-card-header>\n <ion-card-title>{{ title }}</ion-card-title>\n </ion-card-header>\n <ion-card-content>\n {{ content }}\n </ion-card-content>\n</ion-card>", styles: [""], dependencies: [{ kind: "component", type: i1.IonCard, selector: "ion-card", inputs: ["button", "color", "disabled", "download", "href", "mode", "rel", "routerAnimation", "routerDirection", "target", "type"] }, { kind: "component", type: i1.IonCardContent, selector: "ion-card-content", inputs: ["mode"] }, { kind: "component", type: i1.IonCardHeader, selector: "ion-card-header", inputs: ["color", "mode", "translucent"] }, { kind: "component", type: i1.IonCardTitle, selector: "ion-card-title", inputs: ["color", "mode"] }] }); }
11
+ }
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CustomCardComponent, decorators: [{
13
+ type: Component,
14
+ args: [{ selector: 'val-custom-card', template: "<ion-card>\n <ion-card-header>\n <ion-card-title>{{ title }}</ion-card-title>\n </ion-card-header>\n <ion-card-content>\n {{ content }}\n </ion-card-content>\n</ion-card>" }]
15
+ }], propDecorators: { title: [{
16
+ type: Input
17
+ }], content: [{
18
+ type: Input
19
+ }] } });
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tLWNhcmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdmFsdGVjaC1jb21wb25lbnRzL3NyYy9saWIvY3VzdG9tLWNhcmQvY3VzdG9tLWNhcmQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdmFsdGVjaC1jb21wb25lbnRzL3NyYy9saWIvY3VzdG9tLWNhcmQvY3VzdG9tLWNhcmQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7OztBQU9qRCxNQUFNLE9BQU8sbUJBQW1CO0lBTGhDO1FBTVcsVUFBSyxHQUFXLEVBQUUsQ0FBQztRQUNuQixZQUFPLEdBQVcsRUFBRSxDQUFDO0tBRS9COzhHQUpZLG1CQUFtQjtrR0FBbkIsbUJBQW1CLHVHQ1BoQyxzTUFPVzs7MkZEQUUsbUJBQW1CO2tCQUwvQixTQUFTOytCQUNFLGlCQUFpQjs4QkFLbEIsS0FBSztzQkFBYixLQUFLO2dCQUNHLE9BQU87c0JBQWYsS0FBSyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCwgSW5wdXQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAndmFsLWN1c3RvbS1jYXJkJyxcbiAgdGVtcGxhdGVVcmw6ICcuL2N1c3RvbS1jYXJkLmNvbXBvbmVudC5odG1sJyxcbiAgc3R5bGVVcmw6ICcuL2N1c3RvbS1jYXJkLmNvbXBvbmVudC5jc3MnXG59KVxuZXhwb3J0IGNsYXNzIEN1c3RvbUNhcmRDb21wb25lbnQge1xuICBASW5wdXQoKSB0aXRsZTogc3RyaW5nID0gJyc7XG4gIEBJbnB1dCgpIGNvbnRlbnQ6IHN0cmluZyA9ICcnO1xuICBcbn1cbiIsIjxpb24tY2FyZD5cbiAgICA8aW9uLWNhcmQtaGVhZGVyPlxuICAgICAgICA8aW9uLWNhcmQtdGl0bGU+e3sgdGl0bGUgfX08L2lvbi1jYXJkLXRpdGxlPlxuICAgIDwvaW9uLWNhcmQtaGVhZGVyPlxuICAgIDxpb24tY2FyZC1jb250ZW50PlxuICAgICAgICB7eyBjb250ZW50IH19XG4gICAgPC9pb24tY2FyZC1jb250ZW50PlxuPC9pb24tY2FyZD4iXX0=
@@ -0,0 +1,12 @@
1
+ import { Component } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@ionic/angular";
4
+ export class CustomHeaderComponent {
5
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CustomHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
6
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: CustomHeaderComponent, selector: "val-custom-header", ngImport: i0, template: "<p>custom-header works!</p>\n<ion-button>Default</ion-button>", styles: [""], dependencies: [{ kind: "component", type: i1.IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }] }); }
7
+ }
8
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CustomHeaderComponent, decorators: [{
9
+ type: Component,
10
+ args: [{ selector: 'val-custom-header', template: "<p>custom-header works!</p>\n<ion-button>Default</ion-button>" }]
11
+ }] });
12
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tLWhlYWRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92YWx0ZWNoLWNvbXBvbmVudHMvc3JjL2xpYi9jdXN0b20taGVhZGVyL2N1c3RvbS1oZWFkZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdmFsdGVjaC1jb21wb25lbnRzL3NyYy9saWIvY3VzdG9tLWhlYWRlci9jdXN0b20taGVhZGVyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7OztBQU8xQyxNQUFNLE9BQU8scUJBQXFCOzhHQUFyQixxQkFBcUI7a0dBQXJCLHFCQUFxQix5RENQbEMsK0RBQ2dDOzsyRkRNbkIscUJBQXFCO2tCQUxqQyxTQUFTOytCQUNFLG1CQUFtQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICd2YWwtY3VzdG9tLWhlYWRlcicsXG4gIHRlbXBsYXRlVXJsOiAnLi9jdXN0b20taGVhZGVyLmNvbXBvbmVudC5odG1sJyxcbiAgc3R5bGVVcmw6ICcuL2N1c3RvbS1oZWFkZXIuY29tcG9uZW50LmNzcydcbn0pXG5leHBvcnQgY2xhc3MgQ3VzdG9tSGVhZGVyQ29tcG9uZW50IHtcblxufVxuIiwiPHA+Y3VzdG9tLWhlYWRlciB3b3JrcyE8L3A+XG48aW9uLWJ1dHRvbj5EZWZhdWx0PC9pb24tYnV0dG9uPiJdfQ==
@@ -0,0 +1,29 @@
1
+ import { CommonModule } from "@angular/common";
2
+ import { HttpClientModule } from "@angular/common/http";
3
+ import { NgModule } from "@angular/core";
4
+ import { IonicModule } from '@ionic/angular';
5
+ import { CustomCardComponent } from "./custom-card/custom-card.component";
6
+ import { CustomHeaderComponent } from "./custom-header/custom-header.component";
7
+ import * as i0 from "@angular/core";
8
+ export class ValtechComponentsModule {
9
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ValtechComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
10
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: ValtechComponentsModule, declarations: [CustomCardComponent, CustomHeaderComponent], imports: [CommonModule,
11
+ HttpClientModule,
12
+ IonicModule], exports: [CustomCardComponent] }); }
13
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ValtechComponentsModule, imports: [CommonModule,
14
+ HttpClientModule,
15
+ IonicModule] }); }
16
+ }
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ValtechComponentsModule, decorators: [{
18
+ type: NgModule,
19
+ args: [{
20
+ declarations: [CustomCardComponent, CustomHeaderComponent],
21
+ imports: [
22
+ CommonModule,
23
+ HttpClientModule,
24
+ IonicModule,
25
+ ],
26
+ exports: [CustomCardComponent]
27
+ }]
28
+ }] });
29
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdGVjaC1jb21wb25lbnRzLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3ZhbHRlY2gtY29tcG9uZW50cy9zcmMvbGliL3ZhbHRlY2gtY29tcG9uZW50cy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFF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Nb2R1bGUgfSBmcm9tICdAaW9uaWMvYW5ndWxhcic7XG5pbXBvcnQgeyBDdXN0b21DYXJkQ29tcG9uZW50IH0gZnJvbSBcIi4vY3VzdG9tLWNhcmQvY3VzdG9tLWNhcmQuY29tcG9uZW50XCI7XG5pbXBvcnQgeyBDdXN0b21IZWFkZXJDb21wb25lbnQgfSBmcm9tIFwiLi9jdXN0b20taGVhZGVyL2N1c3RvbS1oZWFkZXIuY29tcG9uZW50XCI7XG5cbkBOZ01vZHVsZSh7XG4gICAgZGVjbGFyYXRpb25zOiBbQ3VzdG9tQ2FyZENvbXBvbmVudCwgQ3VzdG9tSGVhZGVyQ29tcG9uZW50XSxcbiAgICBpbXBvcnRzOiBbXG4gICAgICAgIENvbW1vbk1vZHVsZSxcbiAgICAgICAgSHR0cENsaWVudE1vZHVsZSxcbiAgICAgICAgSW9uaWNNb2R1bGUsXG4gICAgXSxcbiAgICBleHBvcnRzOiBbQ3VzdG9tQ2FyZENvbXBvbmVudF1cbn0pXG5leHBvcnQgY2xhc3MgVmFsdGVjaENvbXBvbmVudHNNb2R1bGUge1xuXG59Il19
@@ -0,0 +1,6 @@
1
+ /*
2
+ * Public API Surface of valtech-components
3
+ */
4
+ export * from './lib/custom-card/custom-card.component';
5
+ export * from './lib/valtech-components.module';
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3ZhbHRlY2gtY29tcG9uZW50cy9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMseUNBQXlDLENBQUM7QUFDeEQsY0FBYyxpQ0FBaUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgdmFsdGVjaC1jb21wb25lbnRzXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvY3VzdG9tLWNhcmQvY3VzdG9tLWNhcmQuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3ZhbHRlY2gtY29tcG9uZW50cy5tb2R1bGUnO1xuIl19
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public-api';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdGVjaC1jb21wb25lbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvdmFsdGVjaC1jb21wb25lbnRzL3NyYy92YWx0ZWNoLWNvbXBvbmVudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
@@ -0,0 +1,65 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, Input, NgModule } from '@angular/core';
3
+ import * as i1 from '@ionic/angular';
4
+ import { IonicModule } from '@ionic/angular';
5
+ import { CommonModule } from '@angular/common';
6
+ import { HttpClientModule } from '@angular/common/http';
7
+
8
+ class CustomCardComponent {
9
+ constructor() {
10
+ this.title = '';
11
+ this.content = '';
12
+ }
13
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CustomCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
14
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: CustomCardComponent, selector: "val-custom-card", inputs: { title: "title", content: "content" }, ngImport: i0, template: "<ion-card>\n <ion-card-header>\n <ion-card-title>{{ title }}</ion-card-title>\n </ion-card-header>\n <ion-card-content>\n {{ content }}\n </ion-card-content>\n</ion-card>", styles: [""], dependencies: [{ kind: "component", type: i1.IonCard, selector: "ion-card", inputs: ["button", "color", "disabled", "download", "href", "mode", "rel", "routerAnimation", "routerDirection", "target", "type"] }, { kind: "component", type: i1.IonCardContent, selector: "ion-card-content", inputs: ["mode"] }, { kind: "component", type: i1.IonCardHeader, selector: "ion-card-header", inputs: ["color", "mode", "translucent"] }, { kind: "component", type: i1.IonCardTitle, selector: "ion-card-title", inputs: ["color", "mode"] }] }); }
15
+ }
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CustomCardComponent, decorators: [{
17
+ type: Component,
18
+ args: [{ selector: 'val-custom-card', template: "<ion-card>\n <ion-card-header>\n <ion-card-title>{{ title }}</ion-card-title>\n </ion-card-header>\n <ion-card-content>\n {{ content }}\n </ion-card-content>\n</ion-card>" }]
19
+ }], propDecorators: { title: [{
20
+ type: Input
21
+ }], content: [{
22
+ type: Input
23
+ }] } });
24
+
25
+ class CustomHeaderComponent {
26
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CustomHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
27
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: CustomHeaderComponent, selector: "val-custom-header", ngImport: i0, template: "<p>custom-header works!</p>\n<ion-button>Default</ion-button>", styles: [""], dependencies: [{ kind: "component", type: i1.IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }] }); }
28
+ }
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: CustomHeaderComponent, decorators: [{
30
+ type: Component,
31
+ args: [{ selector: 'val-custom-header', template: "<p>custom-header works!</p>\n<ion-button>Default</ion-button>" }]
32
+ }] });
33
+
34
+ class ValtechComponentsModule {
35
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ValtechComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
36
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: ValtechComponentsModule, declarations: [CustomCardComponent, CustomHeaderComponent], imports: [CommonModule,
37
+ HttpClientModule,
38
+ IonicModule], exports: [CustomCardComponent] }); }
39
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ValtechComponentsModule, imports: [CommonModule,
40
+ HttpClientModule,
41
+ IonicModule] }); }
42
+ }
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ValtechComponentsModule, decorators: [{
44
+ type: NgModule,
45
+ args: [{
46
+ declarations: [CustomCardComponent, CustomHeaderComponent],
47
+ imports: [
48
+ CommonModule,
49
+ HttpClientModule,
50
+ IonicModule,
51
+ ],
52
+ exports: [CustomCardComponent]
53
+ }]
54
+ }] });
55
+
56
+ /*
57
+ * Public API Surface of valtech-components
58
+ */
59
+
60
+ /**
61
+ * Generated bundle index. Do not edit.
62
+ */
63
+
64
+ export { CustomCardComponent, ValtechComponentsModule };
65
+ //# sourceMappingURL=valtech-components.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"valtech-components.mjs","sources":["../../../projects/valtech-components/src/lib/custom-card/custom-card.component.ts","../../../projects/valtech-components/src/lib/custom-card/custom-card.component.html","../../../projects/valtech-components/src/lib/custom-header/custom-header.component.ts","../../../projects/valtech-components/src/lib/custom-header/custom-header.component.html","../../../projects/valtech-components/src/lib/valtech-components.module.ts","../../../projects/valtech-components/src/public-api.ts","../../../projects/valtech-components/src/valtech-components.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\n\n@Component({\n selector: 'val-custom-card',\n templateUrl: './custom-card.component.html',\n styleUrl: './custom-card.component.css'\n})\nexport class CustomCardComponent {\n @Input() title: string = '';\n @Input() content: string = '';\n \n}\n","<ion-card>\n <ion-card-header>\n <ion-card-title>{{ title }}</ion-card-title>\n </ion-card-header>\n <ion-card-content>\n {{ content }}\n </ion-card-content>\n</ion-card>","import { Component } from '@angular/core';\n\n@Component({\n selector: 'val-custom-header',\n templateUrl: './custom-header.component.html',\n styleUrl: './custom-header.component.css'\n})\nexport class CustomHeaderComponent {\n\n}\n","<p>custom-header works!</p>\n<ion-button>Default</ion-button>","import { CommonModule } from \"@angular/common\";\nimport { HttpClientModule } from \"@angular/common/http\";\nimport { NgModule } from \"@angular/core\";\nimport { IonicModule } from '@ionic/angular';\nimport { CustomCardComponent } from \"./custom-card/custom-card.component\";\nimport { CustomHeaderComponent } from \"./custom-header/custom-header.component\";\n\n@NgModule({\n declarations: [CustomCardComponent, CustomHeaderComponent],\n imports: [\n CommonModule,\n HttpClientModule,\n IonicModule,\n ],\n exports: [CustomCardComponent]\n})\nexport class ValtechComponentsModule {\n\n}","/*\n * Public API Surface of valtech-components\n */\n\nexport * from './lib/custom-card/custom-card.component';\nexport * from './lib/valtech-components.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAOa,mBAAmB,CAAA;AALhC,IAAA,WAAA,GAAA;QAMW,IAAK,CAAA,KAAA,GAAW,EAAE,CAAC;QACnB,IAAO,CAAA,OAAA,GAAW,EAAE,CAAC;AAE/B,KAAA;8GAJY,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA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AA,EAAA,uBAAuB,YAN5B,YAAY;YACZ,gBAAgB;YAChB,WAAW,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIN,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBATnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,YAAY,EAAE,CAAC,mBAAmB,EAAE,qBAAqB,CAAC;AAC1D,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,gBAAgB;wBAChB,WAAW;AACd,qBAAA;oBACD,OAAO,EAAE,CAAC,mBAAmB,CAAC;AACjC,iBAAA,CAAA;;;ACfD;;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="valtech-components" />
5
+ export * from './public-api';
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class CustomCardComponent {
3
+ title: string;
4
+ content: string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomCardComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomCardComponent, "val-custom-card", never, { "title": { "alias": "title"; "required": false; }; "content": { "alias": "content"; "required": false; }; }, {}, never, never, false, never>;
7
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class CustomHeaderComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomHeaderComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomHeaderComponent, "val-custom-header", never, {}, {}, never, never, false, never>;
5
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./custom-card/custom-card.component";
3
+ import * as i2 from "./custom-header/custom-header.component";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "@angular/common/http";
6
+ import * as i5 from "@ionic/angular";
7
+ export declare class ValtechComponentsModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ValtechComponentsModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ValtechComponentsModule, [typeof i1.CustomCardComponent, typeof i2.CustomHeaderComponent], [typeof i3.CommonModule, typeof i4.HttpClientModule, typeof i5.IonicModule], [typeof i1.CustomCardComponent]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<ValtechComponentsModule>;
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0",
@@ -10,7 +10,17 @@
10
10
  "tslib": "^2.3.0"
11
11
  },
12
12
  "sideEffects": false,
13
- "devDependencies": {
14
- "@ionic/angular": "^7.8.0"
13
+ "module": "fesm2022/valtech-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/valtech-components.mjs",
22
+ "esm": "./esm2022/valtech-components.mjs",
23
+ "default": "./fesm2022/valtech-components.mjs"
24
+ }
15
25
  }
16
- }
26
+ }
@@ -1,6 +1,2 @@
1
- /*
2
- * Public API Surface of valtech-components
3
- */
4
-
5
1
  export * from './lib/custom-card/custom-card.component';
6
2
  export * from './lib/valtech-components.module';
package/ng-package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../dist/valtech-components",
4
- "lib": {
5
- "entryFile": "src/public-api.ts"
6
- }
7
- }
File without changes
@@ -1,8 +0,0 @@
1
- <ion-card>
2
- <ion-card-header>
3
- <ion-card-title>{{ title }}</ion-card-title>
4
- </ion-card-header>
5
- <ion-card-content>
6
- {{ content }}
7
- </ion-card-content>
8
- </ion-card>
@@ -1,12 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'val-custom-card',
5
- templateUrl: './custom-card.component.html',
6
- styleUrl: './custom-card.component.css'
7
- })
8
- export class CustomCardComponent {
9
- @Input() title: string = '';
10
- @Input() content: string = '';
11
-
12
- }
File without changes
@@ -1,2 +0,0 @@
1
- <p>custom-header works!</p>
2
- <ion-button>Default</ion-button>
@@ -1,10 +0,0 @@
1
- import { Component } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'val-custom-header',
5
- templateUrl: './custom-header.component.html',
6
- styleUrl: './custom-header.component.css'
7
- })
8
- export class CustomHeaderComponent {
9
-
10
- }
@@ -1,19 +0,0 @@
1
- import { CommonModule } from "@angular/common";
2
- import { HttpClientModule } from "@angular/common/http";
3
- import { NgModule } from "@angular/core";
4
- import { IonicModule } from '@ionic/angular';
5
- import { CustomCardComponent } from "./custom-card/custom-card.component";
6
- import { CustomHeaderComponent } from "./custom-header/custom-header.component";
7
-
8
- @NgModule({
9
- declarations: [CustomCardComponent, CustomHeaderComponent],
10
- imports: [
11
- CommonModule,
12
- HttpClientModule,
13
- IonicModule,
14
- ],
15
- exports: [CustomCardComponent]
16
- })
17
- export class ValtechComponentsModule {
18
-
19
- }
package/tsconfig.lib.json DELETED
@@ -1,14 +0,0 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
- {
3
- "extends": "../../tsconfig.json",
4
- "compilerOptions": {
5
- "outDir": "../../out-tsc/lib",
6
- "declaration": true,
7
- "declarationMap": true,
8
- "inlineSources": true,
9
- "types": []
10
- },
11
- "exclude": [
12
- "**/*.spec.ts"
13
- ]
14
- }
@@ -1,10 +0,0 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
- {
3
- "extends": "./tsconfig.lib.json",
4
- "compilerOptions": {
5
- "declarationMap": false
6
- },
7
- "angularCompilerOptions": {
8
- "compilationMode": "partial"
9
- }
10
- }
@@ -1,14 +0,0 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
- {
3
- "extends": "../../tsconfig.json",
4
- "compilerOptions": {
5
- "outDir": "../../out-tsc/spec",
6
- "types": [
7
- "jasmine"
8
- ]
9
- },
10
- "include": [
11
- "**/*.spec.ts",
12
- "**/*.d.ts"
13
- ]
14
- }