master-control 0.0.8 → 0.1.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.
Files changed (33) hide show
  1. package/esm2022/lib/master-control.component.mjs +19 -0
  2. package/esm2022/lib/master-control.service.mjs +14 -0
  3. package/esm2022/lib/textbox/textbox.component.mjs +23 -0
  4. package/esm2022/master-control.mjs +5 -0
  5. package/esm2022/public-api.mjs +6 -0
  6. package/fesm2022/master-control.mjs +46 -0
  7. package/fesm2022/master-control.mjs.map +1 -0
  8. package/index.d.ts +5 -0
  9. package/lib/master-control.component.d.ts +5 -0
  10. package/lib/master-control.service.d.ts +6 -0
  11. package/lib/textbox/textbox.component.d.ts +7 -0
  12. package/master-control-0.0.9.tgz +0 -0
  13. package/master-control-0.1.0.tgz +0 -0
  14. package/package.json +25 -12
  15. package/public-api.d.ts +2 -0
  16. package/master-control-0.0.7.tgz +0 -0
  17. package/master-control-0.0.8.tgz +0 -0
  18. package/ng-package.json +0 -7
  19. package/src/lib/master-control/master-control.component.css +0 -0
  20. package/src/lib/master-control/master-control.component.html +0 -44
  21. package/src/lib/master-control/master-control.component.spec.ts +0 -23
  22. package/src/lib/master-control/master-control.component.ts +0 -28
  23. package/src/lib/master-control.component.spec.ts +0 -23
  24. package/src/lib/master-control.component.ts +0 -18
  25. package/src/lib/master-control.service.spec.ts +0 -16
  26. package/src/lib/master-control.service.ts +0 -9
  27. package/src/lib/textbox/textbox.component.css +0 -0
  28. package/src/lib/textbox/textbox.component.html +0 -23
  29. package/src/lib/textbox/textbox.component.ts +0 -20
  30. package/src/public-api.ts +0 -6
  31. package/tsconfig.lib.json +0 -15
  32. package/tsconfig.lib.prod.json +0 -11
  33. package/tsconfig.spec.json +0 -15
@@ -0,0 +1,19 @@
1
+ import { Component } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class MasterControlComponent {
4
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MasterControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: MasterControlComponent, isStandalone: true, selector: "lib-master-control", ngImport: i0, template: `
6
+
7
+ <h1>spannnnnn</h1>
8
+ <input type="text"/>
9
+ `, isInline: true, styles: [""] });
10
+ }
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MasterControlComponent, decorators: [{
12
+ type: Component,
13
+ args: [{ selector: 'lib-master-control', standalone: true, imports: [], template: `
14
+
15
+ <h1>spannnnnn</h1>
16
+ <input type="text"/>
17
+ ` }]
18
+ }] });
19
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFzdGVyLWNvbnRyb2wuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbWFzdGVyLWNvbnRyb2wvc3JjL2xpYi9tYXN0ZXItY29udHJvbC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFhMUMsTUFBTSxPQUFPLHNCQUFzQjt3R0FBdEIsc0JBQXNCOzRGQUF0QixzQkFBc0IsOEVBUHZCOzs7O0dBSVQ7OzRGQUdVLHNCQUFzQjtrQkFYbEMsU0FBUzsrQkFDRSxvQkFBb0IsY0FDbEIsSUFBSSxXQUNQLEVBQUUsWUFDRDs7OztHQUlUIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcblxyXG5AQ29tcG9uZW50KHtcclxuICBzZWxlY3RvcjogJ2xpYi1tYXN0ZXItY29udHJvbCcsXHJcbiAgc3RhbmRhbG9uZTogdHJ1ZSxcclxuICBpbXBvcnRzOiBbXSxcclxuICB0ZW1wbGF0ZTogYFxyXG5cclxuICAgIDxoMT5zcGFubm5ubm48L2gxPlxyXG4gICAgPGlucHV0IHR5cGU9XCJ0ZXh0XCIvPlxyXG4gIGAsXHJcbiAgc3R5bGVzOiBgYFxyXG59KVxyXG5leHBvcnQgY2xhc3MgTWFzdGVyQ29udHJvbENvbXBvbmVudCB7XHJcblxyXG59XHJcbiJdfQ==
@@ -0,0 +1,14 @@
1
+ import { Injectable } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class MasterControlService {
4
+ constructor() { }
5
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MasterControlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
6
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MasterControlService, providedIn: 'root' });
7
+ }
8
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MasterControlService, decorators: [{
9
+ type: Injectable,
10
+ args: [{
11
+ providedIn: 'root'
12
+ }]
13
+ }], ctorParameters: () => [] });
14
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFzdGVyLWNvbnRyb2wuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL21hc3Rlci1jb250cm9sL3NyYy9saWIvbWFzdGVyLWNvbnRyb2wuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUszQyxNQUFNLE9BQU8sb0JBQW9CO0lBRS9CLGdCQUFnQixDQUFDO3dHQUZOLG9CQUFvQjs0R0FBcEIsb0JBQW9CLGNBRm5CLE1BQU07OzRGQUVQLG9CQUFvQjtrQkFIaEMsVUFBVTttQkFBQztvQkFDVixVQUFVLEVBQUUsTUFBTTtpQkFDbkIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3RhYmxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcblxyXG5ASW5qZWN0YWJsZSh7XHJcbiAgcHJvdmlkZWRJbjogJ3Jvb3QnXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBNYXN0ZXJDb250cm9sU2VydmljZSB7XHJcblxyXG4gIGNvbnN0cnVjdG9yKCkgeyB9XHJcbn1cclxuIl19
@@ -0,0 +1,23 @@
1
+ import { Component, input } from '@angular/core';
2
+ import { MatInputModule } from '@angular/material/input';
3
+ import { MatFormFieldModule } from '@angular/material/form-field';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "@angular/material/input";
7
+ import * as i2 from "@angular/material/form-field";
8
+ import * as i3 from "@angular/common";
9
+ export class TextboxComponent {
10
+ constructor() { }
11
+ field = input.required();
12
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TextboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
13
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: TextboxComponent, isStandalone: true, selector: "lib-textbox", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<label class=\"field-lable\" *ngIf=\"field() && field().visible\">{{field().label}}</label>\r\n<mat-form-field class=\"w-100\" appearance=\"outline\" *ngIf=\"field() && field().visible\">\r\n <input\r\n matInput\r\n autocomplete=\"none\"\r\n [type]=\"field().controlType\"\r\n [placeholder]=\"field().placeHolder\"\r\n [maxLength]=\"field().validators.maxLength\"\r\n [minLength]=\"field().validators.minLength\"\r\n [disabled]=\"field().isDisable\"\r\n [required]=\"field().validators.required\"\r\n [pattern]=\"field().validators.pattern\"\r\n />\r\n <mat-error *ngIf=\"false\">\r\n {{ field().validators.requiredMessage }}\r\n </mat-error>\r\n </mat-form-field>\r\n<div class=\"error-message\" *ngIf=\"false\">\r\n {{field().validators.requiredMessage}}.\r\n</div>\r\n<div class=\"error-message\" *ngIf=\"false\">\r\n {{field().validators.patternMessage}}.\r\n</div>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
14
+ }
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TextboxComponent, decorators: [{
16
+ type: Component,
17
+ args: [{ selector: 'lib-textbox', standalone: true, imports: [
18
+ MatInputModule,
19
+ MatFormFieldModule,
20
+ CommonModule
21
+ ], template: "<label class=\"field-lable\" *ngIf=\"field() && field().visible\">{{field().label}}</label>\r\n<mat-form-field class=\"w-100\" appearance=\"outline\" *ngIf=\"field() && field().visible\">\r\n <input\r\n matInput\r\n autocomplete=\"none\"\r\n [type]=\"field().controlType\"\r\n [placeholder]=\"field().placeHolder\"\r\n [maxLength]=\"field().validators.maxLength\"\r\n [minLength]=\"field().validators.minLength\"\r\n [disabled]=\"field().isDisable\"\r\n [required]=\"field().validators.required\"\r\n [pattern]=\"field().validators.pattern\"\r\n />\r\n <mat-error *ngIf=\"false\">\r\n {{ field().validators.requiredMessage }}\r\n </mat-error>\r\n </mat-form-field>\r\n<div class=\"error-message\" *ngIf=\"false\">\r\n {{field().validators.requiredMessage}}.\r\n</div>\r\n<div class=\"error-message\" *ngIf=\"false\">\r\n {{field().validators.patternMessage}}.\r\n</div>\r\n" }]
22
+ }], ctorParameters: () => [] });
23
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dGJveC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tYXN0ZXItY29udHJvbC9zcmMvbGliL3RleHRib3gvdGV4dGJveC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tYXN0ZXItY29udHJvbC9zcmMvbGliL3RleHRib3gvdGV4dGJveC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNqRCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFDekQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sOEJBQThCLENBQUM7QUFDbEUsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDOzs7OztBQWEvQyxNQUFNLE9BQU8sZ0JBQWdCO0lBQzNCLGdCQUFjLENBQUM7SUFDZixLQUFLLEdBQVMsS0FBSyxDQUFDLFFBQVEsRUFBTyxDQUFDO3dHQUZ6QixnQkFBZ0I7NEZBQWhCLGdCQUFnQiwwTUNoQjdCLGc4QkF1QkEseUREZEksY0FBYyxrcEJBQ2Qsa0JBQWtCLDhCQUNsQixZQUFZOzs0RkFLSCxnQkFBZ0I7a0JBWDVC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GF0dGVybk1lc3NhZ2V9fS5cclxuPC9kaXY+XHJcbiJdfQ==
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public-api';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFzdGVyLWNvbnRyb2wuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9tYXN0ZXItY29udHJvbC9zcmMvbWFzdGVyLWNvbnRyb2wudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
@@ -0,0 +1,6 @@
1
+ /*
2
+ * Public API Surface of master-control
3
+ */
4
+ export * from './lib/master-control.service';
5
+ export * from './lib/textbox/textbox.component';
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL21hc3Rlci1jb250cm9sL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyw4QkFBOEIsQ0FBQztBQUM3QyxjQUFjLGlDQUFpQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcclxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIG1hc3Rlci1jb250cm9sXHJcbiAqL1xyXG5cclxuZXhwb3J0ICogZnJvbSAnLi9saWIvbWFzdGVyLWNvbnRyb2wuc2VydmljZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL3RleHRib3gvdGV4dGJveC5jb21wb25lbnQnO1xyXG4iXX0=
@@ -0,0 +1,46 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, input, Component } from '@angular/core';
3
+ import * as i1 from '@angular/material/input';
4
+ import { MatInputModule } from '@angular/material/input';
5
+ import * as i2 from '@angular/material/form-field';
6
+ import { MatFormFieldModule } from '@angular/material/form-field';
7
+ import * as i3 from '@angular/common';
8
+ import { CommonModule } from '@angular/common';
9
+
10
+ class MasterControlService {
11
+ constructor() { }
12
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MasterControlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
13
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MasterControlService, providedIn: 'root' });
14
+ }
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MasterControlService, decorators: [{
16
+ type: Injectable,
17
+ args: [{
18
+ providedIn: 'root'
19
+ }]
20
+ }], ctorParameters: () => [] });
21
+
22
+ class TextboxComponent {
23
+ constructor() { }
24
+ field = input.required();
25
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TextboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
26
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: TextboxComponent, isStandalone: true, selector: "lib-textbox", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<label class=\"field-lable\" *ngIf=\"field() && field().visible\">{{field().label}}</label>\r\n<mat-form-field class=\"w-100\" appearance=\"outline\" *ngIf=\"field() && field().visible\">\r\n <input\r\n matInput\r\n autocomplete=\"none\"\r\n [type]=\"field().controlType\"\r\n [placeholder]=\"field().placeHolder\"\r\n [maxLength]=\"field().validators.maxLength\"\r\n [minLength]=\"field().validators.minLength\"\r\n [disabled]=\"field().isDisable\"\r\n [required]=\"field().validators.required\"\r\n [pattern]=\"field().validators.pattern\"\r\n />\r\n <mat-error *ngIf=\"false\">\r\n {{ field().validators.requiredMessage }}\r\n </mat-error>\r\n </mat-form-field>\r\n<div class=\"error-message\" *ngIf=\"false\">\r\n {{field().validators.requiredMessage}}.\r\n</div>\r\n<div class=\"error-message\" *ngIf=\"false\">\r\n {{field().validators.patternMessage}}.\r\n</div>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
27
+ }
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TextboxComponent, decorators: [{
29
+ type: Component,
30
+ args: [{ selector: 'lib-textbox', standalone: true, imports: [
31
+ MatInputModule,
32
+ MatFormFieldModule,
33
+ CommonModule
34
+ ], template: "<label class=\"field-lable\" *ngIf=\"field() && field().visible\">{{field().label}}</label>\r\n<mat-form-field class=\"w-100\" appearance=\"outline\" *ngIf=\"field() && field().visible\">\r\n <input\r\n matInput\r\n autocomplete=\"none\"\r\n [type]=\"field().controlType\"\r\n [placeholder]=\"field().placeHolder\"\r\n [maxLength]=\"field().validators.maxLength\"\r\n [minLength]=\"field().validators.minLength\"\r\n [disabled]=\"field().isDisable\"\r\n [required]=\"field().validators.required\"\r\n [pattern]=\"field().validators.pattern\"\r\n />\r\n <mat-error *ngIf=\"false\">\r\n {{ field().validators.requiredMessage }}\r\n </mat-error>\r\n </mat-form-field>\r\n<div class=\"error-message\" *ngIf=\"false\">\r\n {{field().validators.requiredMessage}}.\r\n</div>\r\n<div class=\"error-message\" *ngIf=\"false\">\r\n {{field().validators.patternMessage}}.\r\n</div>\r\n" }]
35
+ }], ctorParameters: () => [] });
36
+
37
+ /*
38
+ * Public API Surface of master-control
39
+ */
40
+
41
+ /**
42
+ * Generated bundle index. Do not edit.
43
+ */
44
+
45
+ export { MasterControlService, TextboxComponent };
46
+ //# sourceMappingURL=master-control.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"master-control.mjs","sources":["../../../projects/master-control/src/lib/master-control.service.ts","../../../projects/master-control/src/lib/textbox/textbox.component.ts","../../../projects/master-control/src/lib/textbox/textbox.component.html","../../../projects/master-control/src/public-api.ts","../../../projects/master-control/src/master-control.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class MasterControlService {\r\n\r\n constructor() { }\r\n}\r\n","import { Component, input } from '@angular/core';\r\nimport { MatInputModule } from '@angular/material/input';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { CommonModule } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'lib-textbox',\r\n standalone: true,\r\n imports: [\r\n MatInputModule,\r\n MatFormFieldModule ,\r\n CommonModule\r\n ],\r\n templateUrl: './textbox.component.html',\r\n styleUrl: './textbox.component.css'\r\n})\r\nexport class TextboxComponent {\r\n constructor(){}\r\n field : any = input.required<any>();\r\n}\r\n","<label class=\"field-lable\" *ngIf=\"field() && field().visible\">{{field().label}}</label>\r\n<mat-form-field class=\"w-100\" appearance=\"outline\" *ngIf=\"field() && field().visible\">\r\n <input\r\n matInput\r\n autocomplete=\"none\"\r\n [type]=\"field().controlType\"\r\n [placeholder]=\"field().placeHolder\"\r\n [maxLength]=\"field().validators.maxLength\"\r\n [minLength]=\"field().validators.minLength\"\r\n [disabled]=\"field().isDisable\"\r\n [required]=\"field().validators.required\"\r\n [pattern]=\"field().validators.pattern\"\r\n />\r\n <mat-error *ngIf=\"false\">\r\n {{ field().validators.requiredMessage }}\r\n </mat-error>\r\n </mat-form-field>\r\n<div class=\"error-message\" *ngIf=\"false\">\r\n {{field().validators.requiredMessage}}.\r\n</div>\r\n<div class=\"error-message\" *ngIf=\"false\">\r\n {{field().validators.patternMessage}}.\r\n</div>\r\n","/*\r\n * Public API Surface of master-control\r\n */\r\n\r\nexport * from './lib/master-control.service';\r\nexport * from './lib/textbox/textbox.component';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MAKa,oBAAoB,CAAA;AAE/B,IAAA,WAAA,GAAA,GAAiB;wGAFN,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAApB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,cAFnB,MAAM,EAAA,CAAA,CAAA;;4FAEP,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAHhC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;MCYY,gBAAgB,CAAA;AAC3B,IAAA,WAAA,GAAA,GAAe;AACf,IAAA,KAAK,GAAS,KAAK,CAAC,QAAQ,EAAO,CAAC;wGAFzB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eA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,CAAA;kBAX5B,SAAS;+BACE,aAAa,EAAA,UAAA,EACX,IAAI,EACP,OAAA,EAAA;wBACP,cAAc;wBACd,kBAAkB;wBAClB,YAAY;AACb,qBAAA,EAAA,QAAA,EAAA,g8BAAA,EAAA,CAAA;;;AEZH;;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="master-control" />
5
+ export * from './public-api';
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class MasterControlComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<MasterControlComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<MasterControlComponent, "lib-master-control", never, {}, {}, never, never, true, never>;
5
+ }
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class MasterControlService {
3
+ constructor();
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<MasterControlService, never>;
5
+ static ɵprov: i0.ɵɵInjectableDeclaration<MasterControlService>;
6
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class TextboxComponent {
3
+ constructor();
4
+ field: any;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextboxComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextboxComponent, "lib-textbox", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
7
+ }
Binary file
Binary file
package/package.json CHANGED
@@ -1,12 +1,25 @@
1
- {
2
- "name": "master-control",
3
- "version": "0.0.8",
4
- "peerDependencies": {
5
- "@angular/common": "^18.2.0",
6
- "@angular/core": "^18.2.0"
7
- },
8
- "dependencies": {
9
- "tslib": "^2.3.0"
10
- },
11
- "sideEffects": false
12
- }
1
+ {
2
+ "name": "master-control",
3
+ "version": "0.1.0",
4
+ "peerDependencies": {
5
+ "@angular/common": "^18.2.0",
6
+ "@angular/core": "^18.2.0"
7
+ },
8
+ "dependencies": {
9
+ "tslib": "^2.3.0"
10
+ },
11
+ "sideEffects": false,
12
+ "module": "fesm2022/master-control.mjs",
13
+ "typings": "index.d.ts",
14
+ "exports": {
15
+ "./package.json": {
16
+ "default": "./package.json"
17
+ },
18
+ ".": {
19
+ "types": "./index.d.ts",
20
+ "esm2022": "./esm2022/master-control.mjs",
21
+ "esm": "./esm2022/master-control.mjs",
22
+ "default": "./fesm2022/master-control.mjs"
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,2 @@
1
+ export * from './lib/master-control.service';
2
+ export * from './lib/textbox/textbox.component';
Binary file
Binary file
package/ng-package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../dist/master-control",
4
- "lib": {
5
- "entryFile": "src/public-api.ts"
6
- }
7
- }
@@ -1,44 +0,0 @@
1
- <h1>spannnnnn</h1>
2
- <!-- @switch (field().controlType) {
3
- @case('text') {
4
- <lib-textbox [field]="field()"></lib-textbox>
5
- }
6
-
7
- @case('select') {
8
- <app-select [field]="field()" />
9
- }
10
-
11
- @case('radio') {
12
- <app-radio-button [field]="field()" />
13
- }
14
-
15
- @case('toggle') {
16
- <app-toggle [field]="field()" />
17
- }
18
-
19
- @case('file') {
20
- <app-upload [field]="field()" />
21
- }
22
-
23
- @case('date') {
24
- <app-dob [field]="field()" />
25
- }
26
-
27
- @case('mobileNumber') {
28
- <app-mob-number [field]="field()" />
29
- }
30
-
31
- @case('info') {
32
- <app-info [field]="field()" />
33
- }
34
-
35
- @case('checkbox') {
36
- <app-checkbox [field]="field()" />
37
- }
38
-
39
- @case('textarea') {
40
- <app-textarea [field]="field()" />
41
- }
42
- } -->
43
-
44
- <input type="text"/>
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { MasterControlComponent } from './master-control.component';
4
-
5
- describe('MasterControlComponent', () => {
6
- let component: MasterControlComponent;
7
- let fixture: ComponentFixture<MasterControlComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [MasterControlComponent]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(MasterControlComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,28 +0,0 @@
1
- import { Component, input } from '@angular/core';
2
- import { ToggleComponent } from '../../../../../src/app/controls/toggle/toggle.component';
3
- import { CommonModule } from '@angular/common';
4
- import { TextboxComponent } from '../textbox/textbox.component';
5
- // import { TextboxComponent } from '../../../../../src/app/controls/textbox/textbox.component';
6
- // import { RadioButtonComponent } from '../../../../../src/app/controls/radio-button/radio-button.component';
7
- // import { SelectComponent } from '../../../../../src/app/controls/select/select.component';
8
- // import { UploadComponent } from '../../../../../src/app/controls/upload/upload.component';
9
- // import { DobComponent } from '../../../../../src/app/controls/dob/dob.component';
10
- // import { MobNumberComponent } from '../../../../../src/app/controls/mob-number/mob-number.component';
11
- // import { InfoComponent } from '../../../../../src/app/controls/info/info.component';
12
- // import { CheckboxComponent } from '../../../../../src/app/controls/checkbox/checkbox.component';
13
- // import { TextareaComponent } from '../../../../../src/app/controls/textarea/textarea.component';
14
-
15
- @Component({
16
- selector: 'lib-master-control',
17
- standalone: true,
18
- imports: [CommonModule, TextboxComponent],
19
- templateUrl: './master-control.component.html',
20
- styleUrl: './master-control.component.css'
21
- })
22
- export class MasterControlComponent {
23
- // field: any = input.required<any>();
24
- constructor() {
25
- console.log('master Component Library')
26
- }
27
-
28
- }
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { MasterControlComponent } from './master-control.component';
4
-
5
- describe('MasterControlComponent', () => {
6
- let component: MasterControlComponent;
7
- let fixture: ComponentFixture<MasterControlComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [MasterControlComponent]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(MasterControlComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,18 +0,0 @@
1
- import { Component } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'lib-master-control',
5
- standalone: true,
6
- imports: [],
7
- template: `
8
-
9
- <h1>spannnnnn</h1>
10
- <p>
11
- master-control works!
12
- </p>
13
- `,
14
- styles: ``
15
- })
16
- export class MasterControlComponent {
17
-
18
- }
@@ -1,16 +0,0 @@
1
- import { TestBed } from '@angular/core/testing';
2
-
3
- import { MasterControlService } from './master-control.service';
4
-
5
- describe('MasterControlService', () => {
6
- let service: MasterControlService;
7
-
8
- beforeEach(() => {
9
- TestBed.configureTestingModule({});
10
- service = TestBed.inject(MasterControlService);
11
- });
12
-
13
- it('should be created', () => {
14
- expect(service).toBeTruthy();
15
- });
16
- });
@@ -1,9 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
-
3
- @Injectable({
4
- providedIn: 'root'
5
- })
6
- export class MasterControlService {
7
-
8
- constructor() { }
9
- }
File without changes
@@ -1,23 +0,0 @@
1
- <label class="field-lable" *ngIf="field() && field().visible">{{field().label}}</label>
2
- <mat-form-field class="w-100" appearance="outline" *ngIf="field() && field().visible">
3
- <input
4
- matInput
5
- autocomplete="none"
6
- [type]="field().controlType"
7
- [placeholder]="field().placeHolder"
8
- [maxLength]="field().validators.maxLength"
9
- [minLength]="field().validators.minLength"
10
- [disabled]="field().isDisable"
11
- [required]="field().validators.required"
12
- [pattern]="field().validators.pattern"
13
- />
14
- <mat-error *ngIf="false">
15
- {{ field().validators.requiredMessage }}
16
- </mat-error>
17
- </mat-form-field>
18
- <div class="error-message" *ngIf="false">
19
- {{field().validators.requiredMessage}}.
20
- </div>
21
- <div class="error-message" *ngIf="false">
22
- {{field().validators.patternMessage}}.
23
- </div>
@@ -1,20 +0,0 @@
1
- import { Component, input } from '@angular/core';
2
- import { MatInputModule } from '@angular/material/input';
3
- import { MatFormFieldModule } from '@angular/material/form-field';
4
- import { CommonModule } from '@angular/common';
5
-
6
- @Component({
7
- selector: 'lib-textbox',
8
- standalone: true,
9
- imports: [
10
- MatInputModule,
11
- MatFormFieldModule ,
12
- CommonModule
13
- ],
14
- templateUrl: './textbox.component.html',
15
- styleUrl: './textbox.component.css'
16
- })
17
- export class TextboxComponent {
18
- constructor(){}
19
- field : any = input.required<any>();
20
- }
package/src/public-api.ts DELETED
@@ -1,6 +0,0 @@
1
- /*
2
- * Public API Surface of master-control
3
- */
4
-
5
- export * from './lib/master-control.service';
6
- export * from './lib/master-control.component';
package/tsconfig.lib.json DELETED
@@ -1,15 +0,0 @@
1
- /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
- /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
- {
4
- "extends": "../../tsconfig.json",
5
- "compilerOptions": {
6
- "outDir": "../../out-tsc/lib",
7
- "declaration": true,
8
- "declarationMap": true,
9
- "inlineSources": true,
10
- "types": []
11
- },
12
- "exclude": [
13
- "**/*.spec.ts"
14
- ]
15
- }
@@ -1,11 +0,0 @@
1
- /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
- /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
- {
4
- "extends": "./tsconfig.lib.json",
5
- "compilerOptions": {
6
- "declarationMap": false
7
- },
8
- "angularCompilerOptions": {
9
- "compilationMode": "partial"
10
- }
11
- }
@@ -1,15 +0,0 @@
1
- /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
- /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
- {
4
- "extends": "../../tsconfig.json",
5
- "compilerOptions": {
6
- "outDir": "../../out-tsc/spec",
7
- "types": [
8
- "jasmine"
9
- ]
10
- },
11
- "include": [
12
- "**/*.spec.ts",
13
- "**/*.d.ts"
14
- ]
15
- }