ngx-wapp-components 1.0.0

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
+ # WappComponents
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 15.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project wapp-components` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project wapp-components`.
8
+ > Note: Don't forget to add `--project wapp-components` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build wapp-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 wapp-components`, go to the dist folder `cd dist/wapp-components` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test wapp-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,105 @@
1
+ import { Component, EventEmitter, Input, Optional, Output, Self } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@angular/forms";
4
+ import * as i2 from "primeng/inputtext";
5
+ import * as i3 from "@angular/common";
6
+ export class WEditInputTextComponent {
7
+ constructor(ngControl, controlName) {
8
+ this.ngControl = ngControl;
9
+ this.controlName = controlName;
10
+ this.value = "";
11
+ this.inputValue = "";
12
+ this.onValueEvent = new EventEmitter();
13
+ this.label = "";
14
+ this.placeholder = "";
15
+ this.helpDescription = "";
16
+ this.isRequired = false;
17
+ this.requiredErrorDescription = "Mensaje default required";
18
+ this.isDisabled = false;
19
+ this.pattern = "";
20
+ this.patternErrorDescription = "Mensaje default pattern";
21
+ this.minlengthErrorDescription = "Mensaje default min";
22
+ this.maxlengthErrorDescription = "Mensaje default max";
23
+ this.autofocus = false;
24
+ this.isTouched = false;
25
+ this.onChange = (_) => { };
26
+ this.onTouch = () => { };
27
+ if (ngControl != null) {
28
+ ngControl.valueAccessor = this;
29
+ }
30
+ }
31
+ ngOnInit() {
32
+ if (this.controlName != null)
33
+ this.formControl = this.controlName.control;
34
+ }
35
+ writeValue(value) {
36
+ this.value = value;
37
+ }
38
+ registerOnChange(onChange) {
39
+ this.onChange = onChange;
40
+ }
41
+ registerOnTouched(onTouch) {
42
+ this.onTouch = onTouch;
43
+ }
44
+ onValue() {
45
+ this.onValueEvent.emit(this.inputValue);
46
+ }
47
+ }
48
+ WEditInputTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WEditInputTextComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i1.FormControlName, optional: true }], target: i0.ɵɵFactoryTarget.Component });
49
+ WEditInputTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: WEditInputTextComponent, selector: "lib-w-edit-input-text", inputs: { inputValue: "inputValue", label: "label", placeholder: "placeholder", helpDescription: "helpDescription", isRequired: "isRequired", requiredErrorDescription: "requiredErrorDescription", isDisabled: "isDisabled", pattern: "pattern", patternErrorDescription: "patternErrorDescription", minlength: "minlength", minlengthErrorDescription: "minlengthErrorDescription", maxlength: "maxlength", maxlengthErrorDescription: "maxlengthErrorDescription", autofocus: "autofocus" }, outputs: { onValueEvent: "onValue" }, ngImport: i0, template: "<div *ngIf=\"ngControl != null; else noNgControl\" class=\"field p-fluid pt-3\">\n <span class=\"p-float-label\">\n <input pInputText type=\"text\" \n [ngClass]=\"{'ng-invalid ng-dirty': formControl.hasError('required') && formControl.touched}\"\n placeholder=\"{{placeholder}}\"\n [required]=\"isRequired\"\n [formControl]=\"formControl\"\n pattern=\"{{pattern}}\"\n [minlength]=\"minlength\"\n [maxlength]=\"maxlength\" \n [autofocus]=\"autofocus\">\n <label>{{label}}</label>\n </span>\n <small *ngIf=\"formControl.hasError('required') && formControl.touched\" class=\"p-error block\">{{requiredErrorDescription}}</small>\n <small *ngIf=\"formControl.hasError('pattern')\" class=\"p-error block\">{{patternErrorDescription}}</small>\n <small *ngIf=\"formControl.hasError('minlength')\" class=\"p-error block\">{{minlengthErrorDescription}}</small>\n <small *ngIf=\"formControl.hasError('maxlength')\" class=\"p-error block\">{{maxlengthErrorDescription}}</small>\n</div>\n<ng-template #noNgControl>\n <div class=\"field p-fluid pt-3\">\n <span class=\"p-float-label\">\n <input pInputText type=\"text\" \n [(ngModel)]=\"inputValue\"\n [disabled]=\"isDisabled\"\n placeholder=\"{{placeholder}}\"\n pattern=\"{{pattern}}\"\n [minlength]=\"minlength\"\n [maxlength]=\"maxlength\" \n [autofocus]=\"autofocus\" \n (input)=\"onValue()\">\n <label>{{label}}</label>\n </span>\n </div>\n</ng-template>", styles: [""], dependencies: [{ kind: "directive", type: i2.InputText, selector: "[pInputText]" }, { 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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.MinLengthValidator, selector: "[minlength][formControlName],[minlength][formControl],[minlength][ngModel]", inputs: ["minlength"] }, { kind: "directive", type: i1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WEditInputTextComponent, decorators: [{
51
+ type: Component,
52
+ args: [{ selector: 'lib-w-edit-input-text', template: "<div *ngIf=\"ngControl != null; else noNgControl\" class=\"field p-fluid pt-3\">\n <span class=\"p-float-label\">\n <input pInputText type=\"text\" \n [ngClass]=\"{'ng-invalid ng-dirty': formControl.hasError('required') && formControl.touched}\"\n placeholder=\"{{placeholder}}\"\n [required]=\"isRequired\"\n [formControl]=\"formControl\"\n pattern=\"{{pattern}}\"\n [minlength]=\"minlength\"\n [maxlength]=\"maxlength\" \n [autofocus]=\"autofocus\">\n <label>{{label}}</label>\n </span>\n <small *ngIf=\"formControl.hasError('required') && formControl.touched\" class=\"p-error block\">{{requiredErrorDescription}}</small>\n <small *ngIf=\"formControl.hasError('pattern')\" class=\"p-error block\">{{patternErrorDescription}}</small>\n <small *ngIf=\"formControl.hasError('minlength')\" class=\"p-error block\">{{minlengthErrorDescription}}</small>\n <small *ngIf=\"formControl.hasError('maxlength')\" class=\"p-error block\">{{maxlengthErrorDescription}}</small>\n</div>\n<ng-template #noNgControl>\n <div class=\"field p-fluid pt-3\">\n <span class=\"p-float-label\">\n <input pInputText type=\"text\" \n [(ngModel)]=\"inputValue\"\n [disabled]=\"isDisabled\"\n placeholder=\"{{placeholder}}\"\n pattern=\"{{pattern}}\"\n [minlength]=\"minlength\"\n [maxlength]=\"maxlength\" \n [autofocus]=\"autofocus\" \n (input)=\"onValue()\">\n <label>{{label}}</label>\n </span>\n </div>\n</ng-template>" }]
53
+ }], ctorParameters: function () { return [{ type: i1.NgControl, decorators: [{
54
+ type: Optional
55
+ }, {
56
+ type: Self
57
+ }] }, { type: i1.FormControlName, decorators: [{
58
+ type: Optional
59
+ }] }]; }, propDecorators: { inputValue: [{
60
+ type: Input,
61
+ args: ['inputValue']
62
+ }], onValueEvent: [{
63
+ type: Output,
64
+ args: ['onValue']
65
+ }], label: [{
66
+ type: Input,
67
+ args: ['label']
68
+ }], placeholder: [{
69
+ type: Input,
70
+ args: ['placeholder']
71
+ }], helpDescription: [{
72
+ type: Input,
73
+ args: ['helpDescription']
74
+ }], isRequired: [{
75
+ type: Input,
76
+ args: ['isRequired']
77
+ }], requiredErrorDescription: [{
78
+ type: Input,
79
+ args: ['requiredErrorDescription']
80
+ }], isDisabled: [{
81
+ type: Input,
82
+ args: ['isDisabled']
83
+ }], pattern: [{
84
+ type: Input,
85
+ args: ['pattern']
86
+ }], patternErrorDescription: [{
87
+ type: Input,
88
+ args: ['patternErrorDescription']
89
+ }], minlength: [{
90
+ type: Input,
91
+ args: ['minlength']
92
+ }], minlengthErrorDescription: [{
93
+ type: Input,
94
+ args: ['minlengthErrorDescription']
95
+ }], maxlength: [{
96
+ type: Input,
97
+ args: ['maxlength']
98
+ }], maxlengthErrorDescription: [{
99
+ type: Input,
100
+ args: ['maxlengthErrorDescription']
101
+ }], autofocus: [{
102
+ type: Input,
103
+ args: ['autofocus']
104
+ }] } });
105
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidy1lZGl0LWlucHV0LXRleHQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvd2FwcC1jb21wb25lbnRzL3NyYy9saWIvZWRpdC93LWVkaXQtaW5wdXQtdGV4dC93LWVkaXQtaW5wdXQtdGV4dC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9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XT1cImF1dG9mb2N1c1wiIFxuICAgICAgICAgICAgICAgIChpbnB1dCk9XCJvblZhbHVlKClcIj5cbiAgICAgICAgICAgIDxsYWJlbD57e2xhYmVsfX08L2xhYmVsPlxuICAgICAgICA8L3NwYW4+XG4gICAgPC9kaXY+XG48L25nLXRlbXBsYXRlPiJdfQ==
@@ -0,0 +1,19 @@
1
+ import { Component } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class WappComponentsComponent {
4
+ }
5
+ WappComponentsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6
+ WappComponentsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: WappComponentsComponent, selector: "lib-wapp-components", ngImport: i0, template: `
7
+ <p>
8
+ wapp-components works!
9
+ </p>
10
+ `, isInline: true });
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsComponent, decorators: [{
12
+ type: Component,
13
+ args: [{ selector: 'lib-wapp-components', template: `
14
+ <p>
15
+ wapp-components works!
16
+ </p>
17
+ ` }]
18
+ }] });
19
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2FwcC1jb21wb25lbnRzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3dhcHAtY29tcG9uZW50cy9zcmMvbGliL3dhcHAtY29tcG9uZW50cy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFZMUMsTUFBTSxPQUFPLHVCQUF1Qjs7b0hBQXZCLHVCQUF1Qjt3R0FBdkIsdUJBQXVCLDJEQVJ4Qjs7OztHQUlUOzJGQUlVLHVCQUF1QjtrQkFWbkMsU0FBUzsrQkFDRSxxQkFBcUIsWUFDckI7Ozs7R0FJVCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdsaWItd2FwcC1jb21wb25lbnRzJyxcbiAgdGVtcGxhdGU6IGBcbiAgICA8cD5cbiAgICAgIHdhcHAtY29tcG9uZW50cyB3b3JrcyFcbiAgICA8L3A+XG4gIGAsXG4gIHN0eWxlczogW1xuICBdXG59KVxuZXhwb3J0IGNsYXNzIFdhcHBDb21wb25lbnRzQ29tcG9uZW50IHtcblxufVxuIl19
@@ -0,0 +1,42 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
3
+ import { CommonModule } from '@angular/common';
4
+ // PRIMENG
5
+ import { InputTextModule } from 'primeng/inputtext';
6
+ // WAPPING
7
+ import { WappComponentsComponent } from './wapp-components.component';
8
+ import { WEditInputTextComponent } from './edit/w-edit-input-text/w-edit-input-text.component';
9
+ import * as i0 from "@angular/core";
10
+ export class WappComponentsModule {
11
+ }
12
+ WappComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
13
+ WappComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsModule, declarations: [WappComponentsComponent,
14
+ WEditInputTextComponent], imports: [InputTextModule,
15
+ FormsModule,
16
+ ReactiveFormsModule,
17
+ CommonModule], exports: [WappComponentsComponent,
18
+ WEditInputTextComponent] });
19
+ WappComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsModule, imports: [InputTextModule,
20
+ FormsModule,
21
+ ReactiveFormsModule,
22
+ CommonModule] });
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsModule, decorators: [{
24
+ type: NgModule,
25
+ args: [{
26
+ declarations: [
27
+ WappComponentsComponent,
28
+ WEditInputTextComponent
29
+ ],
30
+ imports: [
31
+ InputTextModule,
32
+ FormsModule,
33
+ ReactiveFormsModule,
34
+ CommonModule
35
+ ],
36
+ exports: [
37
+ WappComponentsComponent,
38
+ WEditInputTextComponent
39
+ ]
40
+ }]
41
+ }] });
42
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2FwcC1jb21wb25lbnRzLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3dhcHAtY29tcG9uZW50cy9zcmMvbGliL3dhcHAtY29tcG9uZW50cy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsV0FBVyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDbEUsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBRS9DLFVBQVU7QUFDVixPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFFcEQsVUFBVTtBQUNWLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLDZCQUE2QixDQUFDO0FBQ3RFLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLHNEQUFzRCxDQUFDOztBQWtCL0YsTUFBTSxPQUFPLG9CQUFvQjs7aUhBQXBCLG9CQUFvQjtrSEFBcEIsb0JBQW9CLGlCQWQ3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XG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtcbiAgICBXYXBwQ29tcG9uZW50c0NvbXBvbmVudCxcbiAgICBXRWRpdElucHV0VGV4dENvbXBvbmVudFxuICBdLFxuICBpbXBvcnRzOiBbXG4gICAgSW5wdXRUZXh0TW9kdWxlLFxuICAgIEZvcm1zTW9kdWxlLFxuICAgIFJlYWN0aXZlRm9ybXNNb2R1bGUsXG4gICAgQ29tbW9uTW9kdWxlXG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICBXYXBwQ29tcG9uZW50c0NvbXBvbmVudCxcbiAgICBXRWRpdElucHV0VGV4dENvbXBvbmVudFxuICBdXG59KVxuZXhwb3J0IGNsYXNzIFdhcHBDb21wb25lbnRzTW9kdWxlIHsgfVxuIl19
@@ -0,0 +1,14 @@
1
+ import { Injectable } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class WappComponentsService {
4
+ constructor() { }
5
+ }
6
+ WappComponentsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
7
+ WappComponentsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsService, providedIn: 'root' });
8
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsService, decorators: [{
9
+ type: Injectable,
10
+ args: [{
11
+ providedIn: 'root'
12
+ }]
13
+ }], ctorParameters: function () { return []; } });
14
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2FwcC1jb21wb25lbnRzLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy93YXBwLWNvbXBvbmVudHMvc3JjL2xpYi93YXBwLWNvbXBvbmVudHMuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUszQyxNQUFNLE9BQU8scUJBQXFCO0lBRWhDLGdCQUFnQixDQUFDOztrSEFGTixxQkFBcUI7c0hBQXJCLHFCQUFxQixjQUZwQixNQUFNOzJGQUVQLHFCQUFxQjtrQkFIakMsVUFBVTttQkFBQztvQkFDVixVQUFVLEVBQUUsTUFBTTtpQkFDbkIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3RhYmxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBJbmplY3RhYmxlKHtcbiAgcHJvdmlkZWRJbjogJ3Jvb3QnXG59KVxuZXhwb3J0IGNsYXNzIFdhcHBDb21wb25lbnRzU2VydmljZSB7XG5cbiAgY29uc3RydWN0b3IoKSB7IH1cbn1cbiJdfQ==
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public-api';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXdhcHAtY29tcG9uZW50cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3dhcHAtY29tcG9uZW50cy9zcmMvbmd4LXdhcHAtY29tcG9uZW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
@@ -0,0 +1,8 @@
1
+ /*
2
+ * Public API Surface of wapp-components
3
+ */
4
+ export * from './lib/wapp-components.service';
5
+ export * from './lib/wapp-components.component';
6
+ export * from './lib/wapp-components.module';
7
+ export * from './lib/edit/w-edit-input-text/w-edit-input-text.component';
8
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3dhcHAtY29tcG9uZW50cy9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYyxpQ0FBaUMsQ0FBQztBQUNoRCxjQUFjLDhCQUE4QixDQUFDO0FBRTdDLGNBQWMsMERBQTBELENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIHdhcHAtY29tcG9uZW50c1xuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL3dhcHAtY29tcG9uZW50cy5zZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3dhcHAtY29tcG9uZW50cy5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvd2FwcC1jb21wb25lbnRzLm1vZHVsZSc7XG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL2VkaXQvdy1lZGl0LWlucHV0LXRleHQvdy1lZGl0LWlucHV0LXRleHQuY29tcG9uZW50JzsiXX0=
@@ -0,0 +1,183 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, Component, EventEmitter, Optional, Self, Input, Output, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/forms';
4
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
5
+ import * as i3 from '@angular/common';
6
+ import { CommonModule } from '@angular/common';
7
+ import * as i2 from 'primeng/inputtext';
8
+ import { InputTextModule } from 'primeng/inputtext';
9
+
10
+ class WappComponentsService {
11
+ constructor() { }
12
+ }
13
+ WappComponentsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
14
+ WappComponentsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsService, providedIn: 'root' });
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsService, decorators: [{
16
+ type: Injectable,
17
+ args: [{
18
+ providedIn: 'root'
19
+ }]
20
+ }], ctorParameters: function () { return []; } });
21
+
22
+ class WappComponentsComponent {
23
+ }
24
+ WappComponentsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
25
+ WappComponentsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: WappComponentsComponent, selector: "lib-wapp-components", ngImport: i0, template: `
26
+ <p>
27
+ wapp-components works!
28
+ </p>
29
+ `, isInline: true });
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsComponent, decorators: [{
31
+ type: Component,
32
+ args: [{ selector: 'lib-wapp-components', template: `
33
+ <p>
34
+ wapp-components works!
35
+ </p>
36
+ ` }]
37
+ }] });
38
+
39
+ class WEditInputTextComponent {
40
+ constructor(ngControl, controlName) {
41
+ this.ngControl = ngControl;
42
+ this.controlName = controlName;
43
+ this.value = "";
44
+ this.inputValue = "";
45
+ this.onValueEvent = new EventEmitter();
46
+ this.label = "";
47
+ this.placeholder = "";
48
+ this.helpDescription = "";
49
+ this.isRequired = false;
50
+ this.requiredErrorDescription = "Mensaje default required";
51
+ this.isDisabled = false;
52
+ this.pattern = "";
53
+ this.patternErrorDescription = "Mensaje default pattern";
54
+ this.minlengthErrorDescription = "Mensaje default min";
55
+ this.maxlengthErrorDescription = "Mensaje default max";
56
+ this.autofocus = false;
57
+ this.isTouched = false;
58
+ this.onChange = (_) => { };
59
+ this.onTouch = () => { };
60
+ if (ngControl != null) {
61
+ ngControl.valueAccessor = this;
62
+ }
63
+ }
64
+ ngOnInit() {
65
+ if (this.controlName != null)
66
+ this.formControl = this.controlName.control;
67
+ }
68
+ writeValue(value) {
69
+ this.value = value;
70
+ }
71
+ registerOnChange(onChange) {
72
+ this.onChange = onChange;
73
+ }
74
+ registerOnTouched(onTouch) {
75
+ this.onTouch = onTouch;
76
+ }
77
+ onValue() {
78
+ this.onValueEvent.emit(this.inputValue);
79
+ }
80
+ }
81
+ WEditInputTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WEditInputTextComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i1.FormControlName, optional: true }], target: i0.ɵɵFactoryTarget.Component });
82
+ WEditInputTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: WEditInputTextComponent, selector: "lib-w-edit-input-text", inputs: { inputValue: "inputValue", label: "label", placeholder: "placeholder", helpDescription: "helpDescription", isRequired: "isRequired", requiredErrorDescription: "requiredErrorDescription", isDisabled: "isDisabled", pattern: "pattern", patternErrorDescription: "patternErrorDescription", minlength: "minlength", minlengthErrorDescription: "minlengthErrorDescription", maxlength: "maxlength", maxlengthErrorDescription: "maxlengthErrorDescription", autofocus: "autofocus" }, outputs: { onValueEvent: "onValue" }, ngImport: i0, template: "<div *ngIf=\"ngControl != null; else noNgControl\" class=\"field p-fluid pt-3\">\n <span class=\"p-float-label\">\n <input pInputText type=\"text\" \n [ngClass]=\"{'ng-invalid ng-dirty': formControl.hasError('required') && formControl.touched}\"\n placeholder=\"{{placeholder}}\"\n [required]=\"isRequired\"\n [formControl]=\"formControl\"\n pattern=\"{{pattern}}\"\n [minlength]=\"minlength\"\n [maxlength]=\"maxlength\" \n [autofocus]=\"autofocus\">\n <label>{{label}}</label>\n </span>\n <small *ngIf=\"formControl.hasError('required') && formControl.touched\" class=\"p-error block\">{{requiredErrorDescription}}</small>\n <small *ngIf=\"formControl.hasError('pattern')\" class=\"p-error block\">{{patternErrorDescription}}</small>\n <small *ngIf=\"formControl.hasError('minlength')\" class=\"p-error block\">{{minlengthErrorDescription}}</small>\n <small *ngIf=\"formControl.hasError('maxlength')\" class=\"p-error block\">{{maxlengthErrorDescription}}</small>\n</div>\n<ng-template #noNgControl>\n <div class=\"field p-fluid pt-3\">\n <span class=\"p-float-label\">\n <input pInputText type=\"text\" \n [(ngModel)]=\"inputValue\"\n [disabled]=\"isDisabled\"\n placeholder=\"{{placeholder}}\"\n pattern=\"{{pattern}}\"\n [minlength]=\"minlength\"\n [maxlength]=\"maxlength\" \n [autofocus]=\"autofocus\" \n (input)=\"onValue()\">\n <label>{{label}}</label>\n </span>\n </div>\n</ng-template>", styles: [""], dependencies: [{ kind: "directive", type: i2.InputText, selector: "[pInputText]" }, { 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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.MinLengthValidator, selector: "[minlength][formControlName],[minlength][formControl],[minlength][ngModel]", inputs: ["minlength"] }, { kind: "directive", type: i1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
83
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WEditInputTextComponent, decorators: [{
84
+ type: Component,
85
+ args: [{ selector: 'lib-w-edit-input-text', template: "<div *ngIf=\"ngControl != null; else noNgControl\" class=\"field p-fluid pt-3\">\n <span class=\"p-float-label\">\n <input pInputText type=\"text\" \n [ngClass]=\"{'ng-invalid ng-dirty': formControl.hasError('required') && formControl.touched}\"\n placeholder=\"{{placeholder}}\"\n [required]=\"isRequired\"\n [formControl]=\"formControl\"\n pattern=\"{{pattern}}\"\n [minlength]=\"minlength\"\n [maxlength]=\"maxlength\" \n [autofocus]=\"autofocus\">\n <label>{{label}}</label>\n </span>\n <small *ngIf=\"formControl.hasError('required') && formControl.touched\" class=\"p-error block\">{{requiredErrorDescription}}</small>\n <small *ngIf=\"formControl.hasError('pattern')\" class=\"p-error block\">{{patternErrorDescription}}</small>\n <small *ngIf=\"formControl.hasError('minlength')\" class=\"p-error block\">{{minlengthErrorDescription}}</small>\n <small *ngIf=\"formControl.hasError('maxlength')\" class=\"p-error block\">{{maxlengthErrorDescription}}</small>\n</div>\n<ng-template #noNgControl>\n <div class=\"field p-fluid pt-3\">\n <span class=\"p-float-label\">\n <input pInputText type=\"text\" \n [(ngModel)]=\"inputValue\"\n [disabled]=\"isDisabled\"\n placeholder=\"{{placeholder}}\"\n pattern=\"{{pattern}}\"\n [minlength]=\"minlength\"\n [maxlength]=\"maxlength\" \n [autofocus]=\"autofocus\" \n (input)=\"onValue()\">\n <label>{{label}}</label>\n </span>\n </div>\n</ng-template>" }]
86
+ }], ctorParameters: function () {
87
+ return [{ type: i1.NgControl, decorators: [{
88
+ type: Optional
89
+ }, {
90
+ type: Self
91
+ }] }, { type: i1.FormControlName, decorators: [{
92
+ type: Optional
93
+ }] }];
94
+ }, propDecorators: { inputValue: [{
95
+ type: Input,
96
+ args: ['inputValue']
97
+ }], onValueEvent: [{
98
+ type: Output,
99
+ args: ['onValue']
100
+ }], label: [{
101
+ type: Input,
102
+ args: ['label']
103
+ }], placeholder: [{
104
+ type: Input,
105
+ args: ['placeholder']
106
+ }], helpDescription: [{
107
+ type: Input,
108
+ args: ['helpDescription']
109
+ }], isRequired: [{
110
+ type: Input,
111
+ args: ['isRequired']
112
+ }], requiredErrorDescription: [{
113
+ type: Input,
114
+ args: ['requiredErrorDescription']
115
+ }], isDisabled: [{
116
+ type: Input,
117
+ args: ['isDisabled']
118
+ }], pattern: [{
119
+ type: Input,
120
+ args: ['pattern']
121
+ }], patternErrorDescription: [{
122
+ type: Input,
123
+ args: ['patternErrorDescription']
124
+ }], minlength: [{
125
+ type: Input,
126
+ args: ['minlength']
127
+ }], minlengthErrorDescription: [{
128
+ type: Input,
129
+ args: ['minlengthErrorDescription']
130
+ }], maxlength: [{
131
+ type: Input,
132
+ args: ['maxlength']
133
+ }], maxlengthErrorDescription: [{
134
+ type: Input,
135
+ args: ['maxlengthErrorDescription']
136
+ }], autofocus: [{
137
+ type: Input,
138
+ args: ['autofocus']
139
+ }] } });
140
+
141
+ class WappComponentsModule {
142
+ }
143
+ WappComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
144
+ WappComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsModule, declarations: [WappComponentsComponent,
145
+ WEditInputTextComponent], imports: [InputTextModule,
146
+ FormsModule,
147
+ ReactiveFormsModule,
148
+ CommonModule], exports: [WappComponentsComponent,
149
+ WEditInputTextComponent] });
150
+ WappComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsModule, imports: [InputTextModule,
151
+ FormsModule,
152
+ ReactiveFormsModule,
153
+ CommonModule] });
154
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsModule, decorators: [{
155
+ type: NgModule,
156
+ args: [{
157
+ declarations: [
158
+ WappComponentsComponent,
159
+ WEditInputTextComponent
160
+ ],
161
+ imports: [
162
+ InputTextModule,
163
+ FormsModule,
164
+ ReactiveFormsModule,
165
+ CommonModule
166
+ ],
167
+ exports: [
168
+ WappComponentsComponent,
169
+ WEditInputTextComponent
170
+ ]
171
+ }]
172
+ }] });
173
+
174
+ /*
175
+ * Public API Surface of wapp-components
176
+ */
177
+
178
+ /**
179
+ * Generated bundle index. Do not edit.
180
+ */
181
+
182
+ export { WEditInputTextComponent, WappComponentsComponent, WappComponentsModule, WappComponentsService };
183
+ //# sourceMappingURL=ngx-wapp-components.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-wapp-components.mjs","sources":["../../../projects/wapp-components/src/lib/wapp-components.service.ts","../../../projects/wapp-components/src/lib/wapp-components.component.ts","../../../projects/wapp-components/src/lib/edit/w-edit-input-text/w-edit-input-text.component.ts","../../../projects/wapp-components/src/lib/edit/w-edit-input-text/w-edit-input-text.component.html","../../../projects/wapp-components/src/lib/wapp-components.module.ts","../../../projects/wapp-components/src/public-api.ts","../../../projects/wapp-components/src/ngx-wapp-components.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class WappComponentsService {\n\n constructor() { }\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'lib-wapp-components',\n template: `\n <p>\n wapp-components works!\n </p>\n `,\n styles: [\n ]\n})\nexport class WappComponentsComponent {\n\n}\n","import { Component, EventEmitter, Input, OnInit, Optional, Output, Self } from '@angular/core';\nimport { NgControl, FormControlName } from '@angular/forms';\n\n@Component({\n selector: 'lib-w-edit-input-text',\n templateUrl: './w-edit-input-text.component.html',\n styleUrls: ['./w-edit-input-text.component.css']\n})\nexport class WEditInputTextComponent implements OnInit {\n value: string = \"\";\n\n @Input('inputValue') inputValue: string = \"\";\n @Output('onValue') onValueEvent = new EventEmitter<string>();\n\n @Input('label') label : string = \"\";\n @Input('placeholder') placeholder : string = \"\";\n @Input('helpDescription') helpDescription : string = \"\";\n \n @Input('isRequired') isRequired: boolean = false;\n @Input('requiredErrorDescription') requiredErrorDescription : string = \"Mensaje default required\";\n\n @Input('isDisabled') isDisabled: boolean = false;\n\n @Input('pattern') pattern : string = \"\";\n @Input('patternErrorDescription') patternErrorDescription : string = \"Mensaje default pattern\";\n \n @Input('minlength') minlength!: number;\n @Input('minlengthErrorDescription') minlengthErrorDescription : string = \"Mensaje default min\";\n\n @Input('maxlength') maxlength! : number;\n @Input('maxlengthErrorDescription') maxlengthErrorDescription : string = \"Mensaje default max\";\n\n @Input('autofocus') autofocus : boolean = false;\n\n formControl : any;\n\n isTouched : boolean = false;\n onChange = (_:any) => { }\n onTouch = () => { }\n\n constructor(@Optional() @Self() public ngControl: NgControl, @Optional() private controlName: FormControlName) { \n if (ngControl != null) {\n ngControl.valueAccessor = this;\n }\n }\n \n ngOnInit(): void {\n if(this.controlName != null)\n this.formControl = this.controlName.control;\n }\n\n writeValue(value: any): void {\n this.value = value;\n }\n\n registerOnChange(onChange: any): void {\n this.onChange = onChange;\n }\n\n registerOnTouched(onTouch: any): void {\n this.onTouch = onTouch;\n }\n\n onValue(){\n this.onValueEvent.emit(this.inputValue);\n }\n\n}\n","<div *ngIf=\"ngControl != null; else noNgControl\" class=\"field p-fluid pt-3\">\n <span class=\"p-float-label\">\n <input pInputText type=\"text\" \n [ngClass]=\"{'ng-invalid ng-dirty': formControl.hasError('required') && formControl.touched}\"\n placeholder=\"{{placeholder}}\"\n [required]=\"isRequired\"\n [formControl]=\"formControl\"\n pattern=\"{{pattern}}\"\n [minlength]=\"minlength\"\n [maxlength]=\"maxlength\" \n [autofocus]=\"autofocus\">\n <label>{{label}}</label>\n </span>\n <small *ngIf=\"formControl.hasError('required') && formControl.touched\" class=\"p-error block\">{{requiredErrorDescription}}</small>\n <small *ngIf=\"formControl.hasError('pattern')\" class=\"p-error block\">{{patternErrorDescription}}</small>\n <small *ngIf=\"formControl.hasError('minlength')\" class=\"p-error block\">{{minlengthErrorDescription}}</small>\n <small *ngIf=\"formControl.hasError('maxlength')\" class=\"p-error block\">{{maxlengthErrorDescription}}</small>\n</div>\n<ng-template #noNgControl>\n <div class=\"field p-fluid pt-3\">\n <span class=\"p-float-label\">\n <input pInputText type=\"text\" \n [(ngModel)]=\"inputValue\"\n [disabled]=\"isDisabled\"\n placeholder=\"{{placeholder}}\"\n pattern=\"{{pattern}}\"\n [minlength]=\"minlength\"\n [maxlength]=\"maxlength\" \n [autofocus]=\"autofocus\" \n (input)=\"onValue()\">\n <label>{{label}}</label>\n </span>\n </div>\n</ng-template>","import { NgModule } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\n\n// PRIMENG\nimport { InputTextModule } from 'primeng/inputtext';\n\n// WAPPING\nimport { WappComponentsComponent } from './wapp-components.component';\nimport { WEditInputTextComponent } from './edit/w-edit-input-text/w-edit-input-text.component';\n\n@NgModule({\n declarations: [\n WappComponentsComponent,\n WEditInputTextComponent\n ],\n imports: [\n InputTextModule,\n FormsModule,\n ReactiveFormsModule,\n CommonModule\n ],\n exports: [\n WappComponentsComponent,\n WEditInputTextComponent\n ]\n})\nexport class WappComponentsModule { }\n","/*\n * Public API Surface of wapp-components\n */\n\nexport * from './lib/wapp-components.service';\nexport * from './lib/wapp-components.component';\nexport * from './lib/wapp-components.module';\n\nexport * from './lib/edit/w-edit-input-text/w-edit-input-text.component';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MAKa,qBAAqB,CAAA;AAEhC,IAAA,WAAA,GAAA,GAAiB;;kHAFN,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAArB,qBAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,cAFpB,MAAM,EAAA,CAAA,CAAA;2FAEP,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAHjC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;iBACnB,CAAA;;;MCQY,uBAAuB,CAAA;;oHAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAvB,uBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,uBAAuB,EARxB,QAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;AAIT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA;2FAIU,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAVnC,SAAS;YACE,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,qBAAqB,EACrB,QAAA,EAAA,CAAA;;;;AAIT,EAAA,CAAA,EAAA,CAAA;;;MCAU,uBAAuB,CAAA;IAgClC,WAAuC,CAAA,SAAoB,EAAsB,WAA4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,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,iBAd7B,uBAAuB;AACvB,QAAA,uBAAuB,aAGvB,eAAe;QACf,WAAW;QACX,mBAAmB;AACnB,QAAA,YAAY,aAGZ,uBAAuB;QACvB,uBAAuB,CAAA,EAAA,CAAA,CAAA;AAGd,oBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAV7B,eAAe;QACf,WAAW;QACX,mBAAmB;QACnB,YAAY,CAAA,EAAA,CAAA,CAAA;2FAOH,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAhBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,uBAAuB;wBACvB,uBAAuB;AACxB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,eAAe;wBACf,WAAW;wBACX,mBAAmB;wBACnB,YAAY;AACb,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,uBAAuB;wBACvB,uBAAuB;AACxB,qBAAA;iBACF,CAAA;;;AC1BD;;AAEG;;ACFH;;AAEG;;;;"}
@@ -0,0 +1,181 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, Component, EventEmitter, Optional, Self, Input, Output, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/forms';
4
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
5
+ import * as i3 from '@angular/common';
6
+ import { CommonModule } from '@angular/common';
7
+ import * as i2 from 'primeng/inputtext';
8
+ import { InputTextModule } from 'primeng/inputtext';
9
+
10
+ class WappComponentsService {
11
+ constructor() { }
12
+ }
13
+ WappComponentsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
14
+ WappComponentsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsService, providedIn: 'root' });
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsService, decorators: [{
16
+ type: Injectable,
17
+ args: [{
18
+ providedIn: 'root'
19
+ }]
20
+ }], ctorParameters: function () { return []; } });
21
+
22
+ class WappComponentsComponent {
23
+ }
24
+ WappComponentsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
25
+ WappComponentsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: WappComponentsComponent, selector: "lib-wapp-components", ngImport: i0, template: `
26
+ <p>
27
+ wapp-components works!
28
+ </p>
29
+ `, isInline: true });
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsComponent, decorators: [{
31
+ type: Component,
32
+ args: [{ selector: 'lib-wapp-components', template: `
33
+ <p>
34
+ wapp-components works!
35
+ </p>
36
+ ` }]
37
+ }] });
38
+
39
+ class WEditInputTextComponent {
40
+ constructor(ngControl, controlName) {
41
+ this.ngControl = ngControl;
42
+ this.controlName = controlName;
43
+ this.value = "";
44
+ this.inputValue = "";
45
+ this.onValueEvent = new EventEmitter();
46
+ this.label = "";
47
+ this.placeholder = "";
48
+ this.helpDescription = "";
49
+ this.isRequired = false;
50
+ this.requiredErrorDescription = "Mensaje default required";
51
+ this.isDisabled = false;
52
+ this.pattern = "";
53
+ this.patternErrorDescription = "Mensaje default pattern";
54
+ this.minlengthErrorDescription = "Mensaje default min";
55
+ this.maxlengthErrorDescription = "Mensaje default max";
56
+ this.autofocus = false;
57
+ this.isTouched = false;
58
+ this.onChange = (_) => { };
59
+ this.onTouch = () => { };
60
+ if (ngControl != null) {
61
+ ngControl.valueAccessor = this;
62
+ }
63
+ }
64
+ ngOnInit() {
65
+ if (this.controlName != null)
66
+ this.formControl = this.controlName.control;
67
+ }
68
+ writeValue(value) {
69
+ this.value = value;
70
+ }
71
+ registerOnChange(onChange) {
72
+ this.onChange = onChange;
73
+ }
74
+ registerOnTouched(onTouch) {
75
+ this.onTouch = onTouch;
76
+ }
77
+ onValue() {
78
+ this.onValueEvent.emit(this.inputValue);
79
+ }
80
+ }
81
+ WEditInputTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WEditInputTextComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i1.FormControlName, optional: true }], target: i0.ɵɵFactoryTarget.Component });
82
+ WEditInputTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: WEditInputTextComponent, selector: "lib-w-edit-input-text", inputs: { inputValue: "inputValue", label: "label", placeholder: "placeholder", helpDescription: "helpDescription", isRequired: "isRequired", requiredErrorDescription: "requiredErrorDescription", isDisabled: "isDisabled", pattern: "pattern", patternErrorDescription: "patternErrorDescription", minlength: "minlength", minlengthErrorDescription: "minlengthErrorDescription", maxlength: "maxlength", maxlengthErrorDescription: "maxlengthErrorDescription", autofocus: "autofocus" }, outputs: { onValueEvent: "onValue" }, ngImport: i0, template: "<div *ngIf=\"ngControl != null; else noNgControl\" class=\"field p-fluid pt-3\">\n <span class=\"p-float-label\">\n <input pInputText type=\"text\" \n [ngClass]=\"{'ng-invalid ng-dirty': formControl.hasError('required') && formControl.touched}\"\n placeholder=\"{{placeholder}}\"\n [required]=\"isRequired\"\n [formControl]=\"formControl\"\n pattern=\"{{pattern}}\"\n [minlength]=\"minlength\"\n [maxlength]=\"maxlength\" \n [autofocus]=\"autofocus\">\n <label>{{label}}</label>\n </span>\n <small *ngIf=\"formControl.hasError('required') && formControl.touched\" class=\"p-error block\">{{requiredErrorDescription}}</small>\n <small *ngIf=\"formControl.hasError('pattern')\" class=\"p-error block\">{{patternErrorDescription}}</small>\n <small *ngIf=\"formControl.hasError('minlength')\" class=\"p-error block\">{{minlengthErrorDescription}}</small>\n <small *ngIf=\"formControl.hasError('maxlength')\" class=\"p-error block\">{{maxlengthErrorDescription}}</small>\n</div>\n<ng-template #noNgControl>\n <div class=\"field p-fluid pt-3\">\n <span class=\"p-float-label\">\n <input pInputText type=\"text\" \n [(ngModel)]=\"inputValue\"\n [disabled]=\"isDisabled\"\n placeholder=\"{{placeholder}}\"\n pattern=\"{{pattern}}\"\n [minlength]=\"minlength\"\n [maxlength]=\"maxlength\" \n [autofocus]=\"autofocus\" \n (input)=\"onValue()\">\n <label>{{label}}</label>\n </span>\n </div>\n</ng-template>", styles: [""], dependencies: [{ kind: "directive", type: i2.InputText, selector: "[pInputText]" }, { 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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.MinLengthValidator, selector: "[minlength][formControlName],[minlength][formControl],[minlength][ngModel]", inputs: ["minlength"] }, { kind: "directive", type: i1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
83
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WEditInputTextComponent, decorators: [{
84
+ type: Component,
85
+ args: [{ selector: 'lib-w-edit-input-text', template: "<div *ngIf=\"ngControl != null; else noNgControl\" class=\"field p-fluid pt-3\">\n <span class=\"p-float-label\">\n <input pInputText type=\"text\" \n [ngClass]=\"{'ng-invalid ng-dirty': formControl.hasError('required') && formControl.touched}\"\n placeholder=\"{{placeholder}}\"\n [required]=\"isRequired\"\n [formControl]=\"formControl\"\n pattern=\"{{pattern}}\"\n [minlength]=\"minlength\"\n [maxlength]=\"maxlength\" \n [autofocus]=\"autofocus\">\n <label>{{label}}</label>\n </span>\n <small *ngIf=\"formControl.hasError('required') && formControl.touched\" class=\"p-error block\">{{requiredErrorDescription}}</small>\n <small *ngIf=\"formControl.hasError('pattern')\" class=\"p-error block\">{{patternErrorDescription}}</small>\n <small *ngIf=\"formControl.hasError('minlength')\" class=\"p-error block\">{{minlengthErrorDescription}}</small>\n <small *ngIf=\"formControl.hasError('maxlength')\" class=\"p-error block\">{{maxlengthErrorDescription}}</small>\n</div>\n<ng-template #noNgControl>\n <div class=\"field p-fluid pt-3\">\n <span class=\"p-float-label\">\n <input pInputText type=\"text\" \n [(ngModel)]=\"inputValue\"\n [disabled]=\"isDisabled\"\n placeholder=\"{{placeholder}}\"\n pattern=\"{{pattern}}\"\n [minlength]=\"minlength\"\n [maxlength]=\"maxlength\" \n [autofocus]=\"autofocus\" \n (input)=\"onValue()\">\n <label>{{label}}</label>\n </span>\n </div>\n</ng-template>" }]
86
+ }], ctorParameters: function () { return [{ type: i1.NgControl, decorators: [{
87
+ type: Optional
88
+ }, {
89
+ type: Self
90
+ }] }, { type: i1.FormControlName, decorators: [{
91
+ type: Optional
92
+ }] }]; }, propDecorators: { inputValue: [{
93
+ type: Input,
94
+ args: ['inputValue']
95
+ }], onValueEvent: [{
96
+ type: Output,
97
+ args: ['onValue']
98
+ }], label: [{
99
+ type: Input,
100
+ args: ['label']
101
+ }], placeholder: [{
102
+ type: Input,
103
+ args: ['placeholder']
104
+ }], helpDescription: [{
105
+ type: Input,
106
+ args: ['helpDescription']
107
+ }], isRequired: [{
108
+ type: Input,
109
+ args: ['isRequired']
110
+ }], requiredErrorDescription: [{
111
+ type: Input,
112
+ args: ['requiredErrorDescription']
113
+ }], isDisabled: [{
114
+ type: Input,
115
+ args: ['isDisabled']
116
+ }], pattern: [{
117
+ type: Input,
118
+ args: ['pattern']
119
+ }], patternErrorDescription: [{
120
+ type: Input,
121
+ args: ['patternErrorDescription']
122
+ }], minlength: [{
123
+ type: Input,
124
+ args: ['minlength']
125
+ }], minlengthErrorDescription: [{
126
+ type: Input,
127
+ args: ['minlengthErrorDescription']
128
+ }], maxlength: [{
129
+ type: Input,
130
+ args: ['maxlength']
131
+ }], maxlengthErrorDescription: [{
132
+ type: Input,
133
+ args: ['maxlengthErrorDescription']
134
+ }], autofocus: [{
135
+ type: Input,
136
+ args: ['autofocus']
137
+ }] } });
138
+
139
+ class WappComponentsModule {
140
+ }
141
+ WappComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
142
+ WappComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsModule, declarations: [WappComponentsComponent,
143
+ WEditInputTextComponent], imports: [InputTextModule,
144
+ FormsModule,
145
+ ReactiveFormsModule,
146
+ CommonModule], exports: [WappComponentsComponent,
147
+ WEditInputTextComponent] });
148
+ WappComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsModule, imports: [InputTextModule,
149
+ FormsModule,
150
+ ReactiveFormsModule,
151
+ CommonModule] });
152
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: WappComponentsModule, decorators: [{
153
+ type: NgModule,
154
+ args: [{
155
+ declarations: [
156
+ WappComponentsComponent,
157
+ WEditInputTextComponent
158
+ ],
159
+ imports: [
160
+ InputTextModule,
161
+ FormsModule,
162
+ ReactiveFormsModule,
163
+ CommonModule
164
+ ],
165
+ exports: [
166
+ WappComponentsComponent,
167
+ WEditInputTextComponent
168
+ ]
169
+ }]
170
+ }] });
171
+
172
+ /*
173
+ * Public API Surface of wapp-components
174
+ */
175
+
176
+ /**
177
+ * Generated bundle index. Do not edit.
178
+ */
179
+
180
+ export { WEditInputTextComponent, WappComponentsComponent, WappComponentsModule, WappComponentsService };
181
+ //# sourceMappingURL=ngx-wapp-components.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-wapp-components.mjs","sources":["../../../projects/wapp-components/src/lib/wapp-components.service.ts","../../../projects/wapp-components/src/lib/wapp-components.component.ts","../../../projects/wapp-components/src/lib/edit/w-edit-input-text/w-edit-input-text.component.ts","../../../projects/wapp-components/src/lib/edit/w-edit-input-text/w-edit-input-text.component.html","../../../projects/wapp-components/src/lib/wapp-components.module.ts","../../../projects/wapp-components/src/public-api.ts","../../../projects/wapp-components/src/ngx-wapp-components.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class WappComponentsService {\n\n constructor() { }\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'lib-wapp-components',\n template: `\n <p>\n wapp-components works!\n </p>\n `,\n styles: [\n ]\n})\nexport class WappComponentsComponent {\n\n}\n","import { Component, EventEmitter, Input, OnInit, Optional, Output, Self } from '@angular/core';\nimport { NgControl, FormControlName } from '@angular/forms';\n\n@Component({\n selector: 'lib-w-edit-input-text',\n templateUrl: './w-edit-input-text.component.html',\n styleUrls: ['./w-edit-input-text.component.css']\n})\nexport class WEditInputTextComponent implements OnInit {\n value: string = \"\";\n\n @Input('inputValue') inputValue: string = \"\";\n @Output('onValue') onValueEvent = new EventEmitter<string>();\n\n @Input('label') label : string = \"\";\n @Input('placeholder') placeholder : string = \"\";\n @Input('helpDescription') helpDescription : string = \"\";\n \n @Input('isRequired') isRequired: boolean = false;\n @Input('requiredErrorDescription') requiredErrorDescription : string = \"Mensaje default required\";\n\n @Input('isDisabled') isDisabled: boolean = false;\n\n @Input('pattern') pattern : string = \"\";\n @Input('patternErrorDescription') patternErrorDescription : string = \"Mensaje default pattern\";\n \n @Input('minlength') minlength!: number;\n @Input('minlengthErrorDescription') minlengthErrorDescription : string = \"Mensaje default min\";\n\n @Input('maxlength') maxlength! : number;\n @Input('maxlengthErrorDescription') maxlengthErrorDescription : string = \"Mensaje default max\";\n\n @Input('autofocus') autofocus : boolean = false;\n\n formControl : any;\n\n isTouched : boolean = false;\n onChange = (_:any) => { }\n onTouch = () => { }\n\n constructor(@Optional() @Self() public ngControl: NgControl, @Optional() private controlName: FormControlName) { \n if (ngControl != null) {\n ngControl.valueAccessor = this;\n }\n }\n \n ngOnInit(): void {\n if(this.controlName != null)\n this.formControl = this.controlName.control;\n }\n\n writeValue(value: any): void {\n this.value = value;\n }\n\n registerOnChange(onChange: any): void {\n this.onChange = onChange;\n }\n\n registerOnTouched(onTouch: any): void {\n this.onTouch = onTouch;\n }\n\n onValue(){\n this.onValueEvent.emit(this.inputValue);\n }\n\n}\n","<div *ngIf=\"ngControl != null; else noNgControl\" class=\"field p-fluid pt-3\">\n <span class=\"p-float-label\">\n <input pInputText type=\"text\" \n [ngClass]=\"{'ng-invalid ng-dirty': formControl.hasError('required') && formControl.touched}\"\n placeholder=\"{{placeholder}}\"\n [required]=\"isRequired\"\n [formControl]=\"formControl\"\n pattern=\"{{pattern}}\"\n [minlength]=\"minlength\"\n [maxlength]=\"maxlength\" \n [autofocus]=\"autofocus\">\n <label>{{label}}</label>\n </span>\n <small *ngIf=\"formControl.hasError('required') && formControl.touched\" class=\"p-error block\">{{requiredErrorDescription}}</small>\n <small *ngIf=\"formControl.hasError('pattern')\" class=\"p-error block\">{{patternErrorDescription}}</small>\n <small *ngIf=\"formControl.hasError('minlength')\" class=\"p-error block\">{{minlengthErrorDescription}}</small>\n <small *ngIf=\"formControl.hasError('maxlength')\" class=\"p-error block\">{{maxlengthErrorDescription}}</small>\n</div>\n<ng-template #noNgControl>\n <div class=\"field p-fluid pt-3\">\n <span class=\"p-float-label\">\n <input pInputText type=\"text\" \n [(ngModel)]=\"inputValue\"\n [disabled]=\"isDisabled\"\n placeholder=\"{{placeholder}}\"\n pattern=\"{{pattern}}\"\n [minlength]=\"minlength\"\n [maxlength]=\"maxlength\" \n [autofocus]=\"autofocus\" \n (input)=\"onValue()\">\n <label>{{label}}</label>\n </span>\n </div>\n</ng-template>","import { NgModule } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\n\n// PRIMENG\nimport { InputTextModule } from 'primeng/inputtext';\n\n// WAPPING\nimport { WappComponentsComponent } from './wapp-components.component';\nimport { WEditInputTextComponent } from './edit/w-edit-input-text/w-edit-input-text.component';\n\n@NgModule({\n declarations: [\n WappComponentsComponent,\n WEditInputTextComponent\n ],\n imports: [\n InputTextModule,\n FormsModule,\n ReactiveFormsModule,\n CommonModule\n ],\n exports: [\n WappComponentsComponent,\n WEditInputTextComponent\n ]\n})\nexport class WappComponentsModule { }\n","/*\n * Public API Surface of wapp-components\n */\n\nexport * from './lib/wapp-components.service';\nexport * from './lib/wapp-components.component';\nexport * from './lib/wapp-components.module';\n\nexport * from './lib/edit/w-edit-input-text/w-edit-input-text.component';","/**\n *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vB,QAAA,uBAAuB,aAGvB,eAAe;QACf,WAAW;QACX,mBAAmB;AACnB,QAAA,YAAY,aAGZ,uBAAuB;QACvB,uBAAuB,CAAA,EAAA,CAAA,CAAA;AAGd,oBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAV7B,eAAe;QACf,WAAW;QACX,mBAAmB;QACnB,YAAY,CAAA,EAAA,CAAA,CAAA;2FAOH,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAhBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,uBAAuB;wBACvB,uBAAuB;AACxB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,eAAe;wBACf,WAAW;wBACX,mBAAmB;wBACnB,YAAY;AACb,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,uBAAuB;wBACvB,uBAAuB;AACxB,qBAAA;AACF,iBAAA,CAAA;;;AC1BD;;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-wapp-components" />
5
+ export * from './public-api';
@@ -0,0 +1,35 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { NgControl, FormControlName } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class WEditInputTextComponent implements OnInit {
5
+ ngControl: NgControl;
6
+ private controlName;
7
+ value: string;
8
+ inputValue: string;
9
+ onValueEvent: EventEmitter<string>;
10
+ label: string;
11
+ placeholder: string;
12
+ helpDescription: string;
13
+ isRequired: boolean;
14
+ requiredErrorDescription: string;
15
+ isDisabled: boolean;
16
+ pattern: string;
17
+ patternErrorDescription: string;
18
+ minlength: number;
19
+ minlengthErrorDescription: string;
20
+ maxlength: number;
21
+ maxlengthErrorDescription: string;
22
+ autofocus: boolean;
23
+ formControl: any;
24
+ isTouched: boolean;
25
+ onChange: (_: any) => void;
26
+ onTouch: () => void;
27
+ constructor(ngControl: NgControl, controlName: FormControlName);
28
+ ngOnInit(): void;
29
+ writeValue(value: any): void;
30
+ registerOnChange(onChange: any): void;
31
+ registerOnTouched(onTouch: any): void;
32
+ onValue(): void;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<WEditInputTextComponent, [{ optional: true; self: true; }, { optional: true; }]>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<WEditInputTextComponent, "lib-w-edit-input-text", never, { "inputValue": "inputValue"; "label": "label"; "placeholder": "placeholder"; "helpDescription": "helpDescription"; "isRequired": "isRequired"; "requiredErrorDescription": "requiredErrorDescription"; "isDisabled": "isDisabled"; "pattern": "pattern"; "patternErrorDescription": "patternErrorDescription"; "minlength": "minlength"; "minlengthErrorDescription": "minlengthErrorDescription"; "maxlength": "maxlength"; "maxlengthErrorDescription": "maxlengthErrorDescription"; "autofocus": "autofocus"; }, { "onValueEvent": "onValue"; }, never, never, false, never>;
35
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class WappComponentsComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<WappComponentsComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<WappComponentsComponent, "lib-wapp-components", never, {}, {}, never, never, false, never>;
5
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./wapp-components.component";
3
+ import * as i2 from "./edit/w-edit-input-text/w-edit-input-text.component";
4
+ import * as i3 from "primeng/inputtext";
5
+ import * as i4 from "@angular/forms";
6
+ import * as i5 from "@angular/common";
7
+ export declare class WappComponentsModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<WappComponentsModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<WappComponentsModule, [typeof i1.WappComponentsComponent, typeof i2.WEditInputTextComponent], [typeof i3.InputTextModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.CommonModule], [typeof i1.WappComponentsComponent, typeof i2.WEditInputTextComponent]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<WappComponentsModule>;
11
+ }
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class WappComponentsService {
3
+ constructor();
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<WappComponentsService, never>;
5
+ static ɵprov: i0.ɵɵInjectableDeclaration<WappComponentsService>;
6
+ }
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "ngx-wapp-components",
3
+ "version": "1.0.0",
4
+ "description": "This is a Wapping reusable component library published by Wapping.",
5
+ "keywords": [
6
+ "code",
7
+ "wapping",
8
+ "reusable",
9
+ "components",
10
+ "angular"
11
+ ],
12
+ "author": {
13
+ "name": "Wapping",
14
+ "email": "marcelfd@wappingweb.com",
15
+ "url": "https://www.wappingweb.com/"
16
+ },
17
+ "peerDependencies": {
18
+ "@angular/cdk": "^15.2.5",
19
+ "@angular/common": "^15.2.0",
20
+ "@angular/core": "^15.2.0",
21
+ "primeflex": "^3.3.0",
22
+ "primeicons": "^6.0.1",
23
+ "primeng": "^15.2.1"
24
+ },
25
+ "dependencies": {
26
+ "tslib": "^2.3.0"
27
+ },
28
+ "sideEffects": false,
29
+ "module": "fesm2015/ngx-wapp-components.mjs",
30
+ "es2020": "fesm2020/ngx-wapp-components.mjs",
31
+ "esm2020": "esm2020/ngx-wapp-components.mjs",
32
+ "fesm2020": "fesm2020/ngx-wapp-components.mjs",
33
+ "fesm2015": "fesm2015/ngx-wapp-components.mjs",
34
+ "typings": "index.d.ts",
35
+ "exports": {
36
+ "./package.json": {
37
+ "default": "./package.json"
38
+ },
39
+ ".": {
40
+ "types": "./index.d.ts",
41
+ "esm2020": "./esm2020/ngx-wapp-components.mjs",
42
+ "es2020": "./fesm2020/ngx-wapp-components.mjs",
43
+ "es2015": "./fesm2015/ngx-wapp-components.mjs",
44
+ "node": "./fesm2015/ngx-wapp-components.mjs",
45
+ "default": "./fesm2020/ngx-wapp-components.mjs"
46
+ }
47
+ }
48
+ }
@@ -0,0 +1,4 @@
1
+ export * from './lib/wapp-components.service';
2
+ export * from './lib/wapp-components.component';
3
+ export * from './lib/wapp-components.module';
4
+ export * from './lib/edit/w-edit-input-text/w-edit-input-text.component';