@alfabit-mn/input 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/esm2022/alfabit-mn-input.mjs +5 -0
- package/esm2022/index.mjs +2 -0
- package/esm2022/lib/input/input.component.mjs +36 -0
- package/fesm2022/alfabit-mn-input.mjs +43 -0
- package/fesm2022/alfabit-mn-input.mjs.map +1 -0
- package/index.d.ts +1 -0
- package/lib/input/input.component.d.ts +13 -0
- package/package.json +28 -0
package/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxmYWJpdC1tbi1pbnB1dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvdWkvaW5wdXQvc3JjL2FsZmFiaXQtbW4taW5wdXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG4iXX0=
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './lib/input/input.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL3VpL2lucHV0L3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDZCQUE2QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9saWIvaW5wdXQvaW5wdXQuY29tcG9uZW50JztcbiJdfQ==
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class InputComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.multiline = false;
|
|
7
|
+
this.label = '';
|
|
8
|
+
/**
|
|
9
|
+
* Forneça um id único para cada input.
|
|
10
|
+
*/
|
|
11
|
+
this.id = '';
|
|
12
|
+
this.disabled = false;
|
|
13
|
+
}
|
|
14
|
+
getContainerClass() {
|
|
15
|
+
let classes = 'input-container';
|
|
16
|
+
if (this.label) {
|
|
17
|
+
classes += ' with-label';
|
|
18
|
+
}
|
|
19
|
+
return classes;
|
|
20
|
+
}
|
|
21
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
22
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: InputComponent, isStandalone: true, selector: "ab-input", inputs: { multiline: "multiline", label: "label", id: "id", disabled: "disabled" }, ngImport: i0, template: "<div [class]=\"getContainerClass()\">\n @if(label){\n <label [for]=\"id\" class=\"label\">{{ label }}</label>\n } @if (!multiline) {\n <input\n type=\"text\"\n [id]=\"id\"\n class=\"input\"\n placeholder=\"Text\"\n [disabled]=\"disabled\"\n />\n } @else {\n <textarea\n [id]=\"id\"\n class=\"input\"\n placeholder=\"Text\"\n [disabled]=\"disabled\"\n ></textarea>\n }\n</div>\n", styles: [".input-container{position:relative}.label{position:absolute;cursor:text;margin-top:.375rem;margin-left:1rem;color:var(--ab-secondary-text-color, #5c5c5c);font-family:sans-serif;font-size:.75rem;font-style:normal;font-weight:700;line-height:1rem}.input{box-sizing:border-box;display:flex;width:15.625rem;padding:1rem;flex-direction:column;justify-content:center;align-items:flex-start;gap:.25rem;border-radius:var(--ab-border-radius-input, .5rem);border:0;background:var(--ab-inputs, #f8f8f8);color:var(--ab-primary-text-color, #181818);font-family:sans-serif;font-size:.875rem;font-style:normal;font-weight:400;line-height:1.125rem}.input-container.with-label>.input{padding-top:1.625rem;padding-bottom:.375rem}.input::placeholder{color:var(--ab-secondary-text-color, #5c5c5c)}.input:hover{outline:1px solid var(--ab-hover-color, #1b4af0)}.input:focus{outline:1px solid var(--ab-focus-color, #af4bfe)}.input:disabled{cursor:not-allowed;outline:1px solid var(--ab-disabled-text, #8a8a8a);background:var(--ab-disabled-bg, #efefef)}.input:disabled{outline:1px solid var(--ab-disabled-text, #8a8a8a);background:var(--ab-disabled-bg, #efefef)}.input:disabled,.input-container:has(.input:disabled) .label{cursor:not-allowed}.violet{--ab-hover-color: #a530ff;--ab-focus-color: #2d5bff}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
23
|
+
}
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InputComponent, decorators: [{
|
|
25
|
+
type: Component,
|
|
26
|
+
args: [{ selector: 'ab-input', standalone: true, imports: [CommonModule], template: "<div [class]=\"getContainerClass()\">\n @if(label){\n <label [for]=\"id\" class=\"label\">{{ label }}</label>\n } @if (!multiline) {\n <input\n type=\"text\"\n [id]=\"id\"\n class=\"input\"\n placeholder=\"Text\"\n [disabled]=\"disabled\"\n />\n } @else {\n <textarea\n [id]=\"id\"\n class=\"input\"\n placeholder=\"Text\"\n [disabled]=\"disabled\"\n ></textarea>\n }\n</div>\n", styles: [".input-container{position:relative}.label{position:absolute;cursor:text;margin-top:.375rem;margin-left:1rem;color:var(--ab-secondary-text-color, #5c5c5c);font-family:sans-serif;font-size:.75rem;font-style:normal;font-weight:700;line-height:1rem}.input{box-sizing:border-box;display:flex;width:15.625rem;padding:1rem;flex-direction:column;justify-content:center;align-items:flex-start;gap:.25rem;border-radius:var(--ab-border-radius-input, .5rem);border:0;background:var(--ab-inputs, #f8f8f8);color:var(--ab-primary-text-color, #181818);font-family:sans-serif;font-size:.875rem;font-style:normal;font-weight:400;line-height:1.125rem}.input-container.with-label>.input{padding-top:1.625rem;padding-bottom:.375rem}.input::placeholder{color:var(--ab-secondary-text-color, #5c5c5c)}.input:hover{outline:1px solid var(--ab-hover-color, #1b4af0)}.input:focus{outline:1px solid var(--ab-focus-color, #af4bfe)}.input:disabled{cursor:not-allowed;outline:1px solid var(--ab-disabled-text, #8a8a8a);background:var(--ab-disabled-bg, #efefef)}.input:disabled{outline:1px solid var(--ab-disabled-text, #8a8a8a);background:var(--ab-disabled-bg, #efefef)}.input:disabled,.input-container:has(.input:disabled) .label{cursor:not-allowed}.violet{--ab-hover-color: #a530ff;--ab-focus-color: #2d5bff}\n"] }]
|
|
27
|
+
}], propDecorators: { multiline: [{
|
|
28
|
+
type: Input
|
|
29
|
+
}], label: [{
|
|
30
|
+
type: Input
|
|
31
|
+
}], id: [{
|
|
32
|
+
type: Input
|
|
33
|
+
}], disabled: [{
|
|
34
|
+
type: Input
|
|
35
|
+
}] } });
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy91aS9pbnB1dC9zcmMvbGliL2lucHV0L2lucHV0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvdWkvaW5wdXQvc3JjL2xpYi9pbnB1dC9pbnB1dC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFTLEtBQUssRUFBRSxNQUFN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GlzYWJsZWRcIlxuICA+PC90ZXh0YXJlYT5cbiAgfVxuPC9kaXY+XG4iXX0=
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Input, Component } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
|
|
5
|
+
class InputComponent {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.multiline = false;
|
|
8
|
+
this.label = '';
|
|
9
|
+
/**
|
|
10
|
+
* Forneça um id único para cada input.
|
|
11
|
+
*/
|
|
12
|
+
this.id = '';
|
|
13
|
+
this.disabled = false;
|
|
14
|
+
}
|
|
15
|
+
getContainerClass() {
|
|
16
|
+
let classes = 'input-container';
|
|
17
|
+
if (this.label) {
|
|
18
|
+
classes += ' with-label';
|
|
19
|
+
}
|
|
20
|
+
return classes;
|
|
21
|
+
}
|
|
22
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
23
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: InputComponent, isStandalone: true, selector: "ab-input", inputs: { multiline: "multiline", label: "label", id: "id", disabled: "disabled" }, ngImport: i0, template: "<div [class]=\"getContainerClass()\">\n @if(label){\n <label [for]=\"id\" class=\"label\">{{ label }}</label>\n } @if (!multiline) {\n <input\n type=\"text\"\n [id]=\"id\"\n class=\"input\"\n placeholder=\"Text\"\n [disabled]=\"disabled\"\n />\n } @else {\n <textarea\n [id]=\"id\"\n class=\"input\"\n placeholder=\"Text\"\n [disabled]=\"disabled\"\n ></textarea>\n }\n</div>\n", styles: [".input-container{position:relative}.label{position:absolute;cursor:text;margin-top:.375rem;margin-left:1rem;color:var(--ab-secondary-text-color, #5c5c5c);font-family:sans-serif;font-size:.75rem;font-style:normal;font-weight:700;line-height:1rem}.input{box-sizing:border-box;display:flex;width:15.625rem;padding:1rem;flex-direction:column;justify-content:center;align-items:flex-start;gap:.25rem;border-radius:var(--ab-border-radius-input, .5rem);border:0;background:var(--ab-inputs, #f8f8f8);color:var(--ab-primary-text-color, #181818);font-family:sans-serif;font-size:.875rem;font-style:normal;font-weight:400;line-height:1.125rem}.input-container.with-label>.input{padding-top:1.625rem;padding-bottom:.375rem}.input::placeholder{color:var(--ab-secondary-text-color, #5c5c5c)}.input:hover{outline:1px solid var(--ab-hover-color, #1b4af0)}.input:focus{outline:1px solid var(--ab-focus-color, #af4bfe)}.input:disabled{cursor:not-allowed;outline:1px solid var(--ab-disabled-text, #8a8a8a);background:var(--ab-disabled-bg, #efefef)}.input:disabled{outline:1px solid var(--ab-disabled-text, #8a8a8a);background:var(--ab-disabled-bg, #efefef)}.input:disabled,.input-container:has(.input:disabled) .label{cursor:not-allowed}.violet{--ab-hover-color: #a530ff;--ab-focus-color: #2d5bff}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
24
|
+
}
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InputComponent, decorators: [{
|
|
26
|
+
type: Component,
|
|
27
|
+
args: [{ selector: 'ab-input', standalone: true, imports: [CommonModule], template: "<div [class]=\"getContainerClass()\">\n @if(label){\n <label [for]=\"id\" class=\"label\">{{ label }}</label>\n } @if (!multiline) {\n <input\n type=\"text\"\n [id]=\"id\"\n class=\"input\"\n placeholder=\"Text\"\n [disabled]=\"disabled\"\n />\n } @else {\n <textarea\n [id]=\"id\"\n class=\"input\"\n placeholder=\"Text\"\n [disabled]=\"disabled\"\n ></textarea>\n }\n</div>\n", styles: [".input-container{position:relative}.label{position:absolute;cursor:text;margin-top:.375rem;margin-left:1rem;color:var(--ab-secondary-text-color, #5c5c5c);font-family:sans-serif;font-size:.75rem;font-style:normal;font-weight:700;line-height:1rem}.input{box-sizing:border-box;display:flex;width:15.625rem;padding:1rem;flex-direction:column;justify-content:center;align-items:flex-start;gap:.25rem;border-radius:var(--ab-border-radius-input, .5rem);border:0;background:var(--ab-inputs, #f8f8f8);color:var(--ab-primary-text-color, #181818);font-family:sans-serif;font-size:.875rem;font-style:normal;font-weight:400;line-height:1.125rem}.input-container.with-label>.input{padding-top:1.625rem;padding-bottom:.375rem}.input::placeholder{color:var(--ab-secondary-text-color, #5c5c5c)}.input:hover{outline:1px solid var(--ab-hover-color, #1b4af0)}.input:focus{outline:1px solid var(--ab-focus-color, #af4bfe)}.input:disabled{cursor:not-allowed;outline:1px solid var(--ab-disabled-text, #8a8a8a);background:var(--ab-disabled-bg, #efefef)}.input:disabled{outline:1px solid var(--ab-disabled-text, #8a8a8a);background:var(--ab-disabled-bg, #efefef)}.input:disabled,.input-container:has(.input:disabled) .label{cursor:not-allowed}.violet{--ab-hover-color: #a530ff;--ab-focus-color: #2d5bff}\n"] }]
|
|
28
|
+
}], propDecorators: { multiline: [{
|
|
29
|
+
type: Input
|
|
30
|
+
}], label: [{
|
|
31
|
+
type: Input
|
|
32
|
+
}], id: [{
|
|
33
|
+
type: Input
|
|
34
|
+
}], disabled: [{
|
|
35
|
+
type: Input
|
|
36
|
+
}] } });
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Generated bundle index. Do not edit.
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
export { InputComponent };
|
|
43
|
+
//# sourceMappingURL=alfabit-mn-input.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alfabit-mn-input.mjs","sources":["../../../../../libs/ui/input/src/lib/input/input.component.ts","../../../../../libs/ui/input/src/lib/input/input.component.html","../../../../../libs/ui/input/src/alfabit-mn-input.ts"],"sourcesContent":["import { Component, input, Input } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n selector: 'ab-input',\n standalone: true,\n imports: [CommonModule],\n templateUrl: './input.component.html',\n styleUrl: './input.component.css',\n})\nexport class InputComponent {\n @Input() multiline = false;\n @Input() label = '';\n /**\n * Forneça um id único para cada input.\n */\n @Input() id = '';\n @Input() disabled = false;\n\n getContainerClass(): string {\n let classes = 'input-container';\n\n if (this.label) {\n classes += ' with-label';\n }\n\n return classes;\n }\n}\n","<div [class]=\"getContainerClass()\">\n @if(label){\n <label [for]=\"id\" class=\"label\">{{ label }}</label>\n } @if (!multiline) {\n <input\n type=\"text\"\n [id]=\"id\"\n class=\"input\"\n placeholder=\"Text\"\n [disabled]=\"disabled\"\n />\n } @else {\n <textarea\n [id]=\"id\"\n class=\"input\"\n placeholder=\"Text\"\n [disabled]=\"disabled\"\n ></textarea>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAUa,cAAc,CAAA;AAP3B,IAAA,WAAA,GAAA;QAQW,IAAA,CAAA,SAAS,GAAG,KAAK;QACjB,IAAA,CAAA,KAAK,GAAG,EAAE;AACnB;;AAEG;QACM,IAAA,CAAA,EAAE,GAAG,EAAE;QACP,IAAA,CAAA,QAAQ,GAAG,KAAK;AAW1B,IAAA;IATC,iBAAiB,GAAA;QACf,IAAI,OAAO,GAAG,iBAAiB;AAE/B,QAAA,IAAI,IAAI,CAAC,KAAK,EAAE;YACd,OAAO,IAAI,aAAa;QAC1B;AAEA,QAAA,OAAO,OAAO;IAChB;+GAjBW,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,WAAA,EAAA,KAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECV3B,+ZAoBA,EAAA,MAAA,EAAA,CAAA,kwCAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDdY,YAAY,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAIX,cAAc,EAAA,UAAA,EAAA,CAAA;kBAP1B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,EAAA,UAAA,EACR,IAAI,EAAA,OAAA,EACP,CAAC,YAAY,CAAC,EAAA,QAAA,EAAA,+ZAAA,EAAA,MAAA,EAAA,CAAA,kwCAAA,CAAA,EAAA;8BAKd,SAAS,EAAA,CAAA;sBAAjB;gBACQ,KAAK,EAAA,CAAA;sBAAb;gBAIQ,EAAE,EAAA,CAAA;sBAAV;gBACQ,QAAQ,EAAA,CAAA;sBAAhB;;;AEjBH;;AAEG;;;;"}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/input/input.component';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class InputComponent {
|
|
3
|
+
multiline: boolean;
|
|
4
|
+
label: string;
|
|
5
|
+
/**
|
|
6
|
+
* Forneça um id único para cada input.
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
getContainerClass(): string;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "ab-input", never, { "multiline": { "alias": "multiline"; "required": false; }; "label": { "alias": "label"; "required": false; }; "id": { "alias": "id"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@alfabit-mn/input",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^17.3.0",
|
|
6
|
+
"@angular/core": "^17.3.0"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"module": "fesm2022/alfabit-mn-input.mjs",
|
|
16
|
+
"typings": "index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
"./package.json": {
|
|
19
|
+
"default": "./package.json"
|
|
20
|
+
},
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./index.d.ts",
|
|
23
|
+
"esm2022": "./esm2022/alfabit-mn-input.mjs",
|
|
24
|
+
"esm": "./esm2022/alfabit-mn-input.mjs",
|
|
25
|
+
"default": "./fesm2022/alfabit-mn-input.mjs"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|