tml-mobilidade-core 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -0
- package/assets/fonts/FlowCircular-Regular.ttf +0 -0
- package/assets/fonts/RobotoMono-Medium.ttf +0 -0
- package/assets/fonts/_fonts.scss +13 -0
- package/assets/imgs/edit-icon.svg +1 -0
- package/esm2020/lib/components/button/button.component.mjs +26 -0
- package/esm2020/lib/components/index.mjs +4 -0
- package/esm2020/lib/components/input-password/input-password.component.mjs +22 -0
- package/esm2020/lib/tml-mobilidade-core.component.mjs +22 -0
- package/esm2020/lib/tml-mobilidade-core.module.mjs +40 -0
- package/esm2020/public-api.mjs +4 -0
- package/esm2020/tml-mobilidade-core.mjs +5 -0
- package/fesm2015/tml-mobilidade-core.mjs +107 -0
- package/fesm2015/tml-mobilidade-core.mjs.map +1 -0
- package/fesm2020/tml-mobilidade-core.mjs +107 -0
- package/fesm2020/tml-mobilidade-core.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/button/button.component.d.ts +10 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/components/input-password/input-password.component.d.ts +11 -0
- package/lib/tml-mobilidade-core.component.d.ts +8 -0
- package/lib/tml-mobilidade-core.module.d.ts +11 -0
- package/package.json +32 -0
- package/public-api.d.ts +3 -0
- package/styles/styles.scss +5 -0
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# TmlNgCore
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.2.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project tml-mobilidade-core` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project tml-mobilidade-core`.
|
|
8
|
+
> Note: Don't forget to add `--project tml-mobilidade-core` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
+
|
|
10
|
+
## Build
|
|
11
|
+
|
|
12
|
+
Run `ng build tml-mobilidade-core` 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 tml-mobilidade-core`, go to the dist folder `cd dist/tml-mobilidade-core` and run `npm publish`.
|
|
17
|
+
|
|
18
|
+
## Running unit tests
|
|
19
|
+
|
|
20
|
+
Run `ng test tml-mobilidade-core` 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.
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: 'my-roboto';
|
|
3
|
+
src: url('./RobotoMono-Medium.ttf') format('truetype');
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@font-face {
|
|
7
|
+
font-family: 'password';
|
|
8
|
+
src: url('./FlowCircular-Regular.ttf') format('truetype');
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
* {
|
|
12
|
+
font-family: 'my-roboto';
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path d="M19 12a1 1 0 0 0-1 1v8c0 .551-.448 1-1 1H3c-.552 0-1-.449-1-1V7c0-.551.448-1 1-1h8a1 1 0 1 0 0-2H3C1.346 4 0 5.346 0 7v14c0 1.654 1.346 3 3 3h14c1.654 0 3-1.346 3-3v-8a1 1 0 0 0-1-1z"/><path d="M9.376 11.089a.506.506 0 0 0-.137.255l-.707 3.536a.501.501 0 0 0 .589.588l3.535-.707a.497.497 0 0 0 .256-.137l7.912-7.912-3.535-3.535zM23.268.732a2.502 2.502 0 0 0-3.535 0l-1.384 1.384 3.535 3.535 1.384-1.384C23.74 3.796 24 3.168 24 2.5s-.26-1.296-.732-1.768z"/></svg>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
export class ButtonComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.variant = 'primary';
|
|
7
|
+
this.size = 'md';
|
|
8
|
+
this.iconPath = '';
|
|
9
|
+
}
|
|
10
|
+
teste() {
|
|
11
|
+
console.log('teste da lib');
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
15
|
+
ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: ButtonComponent, selector: "lib-button", inputs: { variant: "variant", size: "size", iconPath: "iconPath" }, ngImport: i0, template: "<button [ngClass]=\"[variant, size]\" (click)=\"teste()\">\n <img src=\"assets/imgs/edit-icon.svg\" alt=\"Icon\" width=\"50\" height=\"50\" />\n <ng-content></ng-content>\n</button>\n", styles: ["button{border:none;cursor:pointer;color:#000;border-radius:4px}button.primary{background-color:#8a2be2!important}button.secondary{background-color:gray}button.sm{padding:5px 10px;font-size:12px}button.md{padding:10px 15px;font-size:14px}button.lg{padding:15px 20px;font-size:16px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
17
|
+
type: Component,
|
|
18
|
+
args: [{ selector: 'lib-button', template: "<button [ngClass]=\"[variant, size]\" (click)=\"teste()\">\n <img src=\"assets/imgs/edit-icon.svg\" alt=\"Icon\" width=\"50\" height=\"50\" />\n <ng-content></ng-content>\n</button>\n", styles: ["button{border:none;cursor:pointer;color:#000;border-radius:4px}button.primary{background-color:#8a2be2!important}button.secondary{background-color:gray}button.sm{padding:5px 10px;font-size:12px}button.md{padding:10px 15px;font-size:14px}button.lg{padding:15px 20px;font-size:16px}\n"] }]
|
|
19
|
+
}], ctorParameters: function () { return []; }, propDecorators: { variant: [{
|
|
20
|
+
type: Input
|
|
21
|
+
}], size: [{
|
|
22
|
+
type: Input
|
|
23
|
+
}], iconPath: [{
|
|
24
|
+
type: Input
|
|
25
|
+
}] } });
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3RtbC1tb2JpbGlkYWRlLWNvcmUvc3JjL2xpYi9jb21wb25lbnRzL2J1dHRvbi9idXR0b24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdG1sLW1vYmlsaWRhZGUtY29yZS9zcmMvbGliL2NvbXBvbmVudHMvYnV0dG9uL2J1dHRvbi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBVSxNQUFNLGVBQWUsQ0FBQzs7O0FBT3pELE1BQU0sT0FBTyxlQUFlO0lBWTFCO1FBUk8sWUFBTyxHQUE0QixTQUFTLENBQUM7UUFHN0MsU0FBSSxHQUF1QixJQUFJLENBQUM7UUFHaEMsYUFBUSxHQUFXLEVBQUUsQ0FBQztJQUViLENBQUM7SUFFakIsS0FBSztRQUNILE9BQU8sQ0FBQyxHQUFHLENBQUMsY0FBYyxDQUFDLENBQUM7SUFDOUIsQ0FBQzs7NEdBaEJVLGVBQWU7Z0dBQWYsZUFBZSxzSENQNUIsMkxB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
|
|
|
1
|
+
export * from './button/button.component';
|
|
2
|
+
export * from '../tml-mobilidade-core.module';
|
|
3
|
+
export * from './input-password/input-password.component';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90bWwtbW9iaWxpZGFkZS1jb3JlL3NyYy9saWIvY29tcG9uZW50cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDJCQUEyQixDQUFDO0FBQzFDLGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYywyQ0FBMkMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYnV0dG9uL2J1dHRvbi5jb21wb25lbnQnO1xyXG5leHBvcnQgKiBmcm9tICcuLi90bWwtbW9iaWxpZGFkZS1jb3JlLm1vZHVsZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vaW5wdXQtcGFzc3dvcmQvaW5wdXQtcGFzc3dvcmQuY29tcG9uZW50JztcclxuIl19
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
import * as i2 from "@angular/material/form-field";
|
|
6
|
+
import * as i3 from "@angular/material/select";
|
|
7
|
+
import * as i4 from "@angular/material/core";
|
|
8
|
+
export class InputPasswordComponent {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.toppings = new FormControl('');
|
|
11
|
+
this.toppingList = ['Extra cheese', 'Mushroom', 'Onion', 'Pepperoni', 'Sausage', 'Tomato'];
|
|
12
|
+
}
|
|
13
|
+
ngOnInit() {
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
InputPasswordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: InputPasswordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
17
|
+
InputPasswordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: InputPasswordComponent, selector: "lib-input-password", ngImport: i0, template: "<input class=\"password\" placeholder=\"Digite sua senha\">\n\n<mat-form-field>\n <mat-label>Toppings</mat-label>\n\n <mat-select multiple #toppings=\"matSelect\">\n <mat-select-trigger>\n {{ toppings.value?.[0] || '' }}\n\n <span\n class=\"example-additional-selection\"\n *ngIf=\"(toppings.value?.length || 0) > 1\"\n >\n (+{{ (toppings.value?.length || 0) - 1 }}\n {{ toppings.value?.length === 2 ? 'other' : 'others' }})\n </span>\n </mat-select-trigger>\n\n <mat-option\n *ngFor=\"let topping of toppingList; let i = index\"\n [value]=\"topping\"\n >\n {{ topping }}\n </mat-option>\n </mat-select>\n</mat-form-field>\n", styles: [".password{font-family:password}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "component", type: i3.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "directive", type: i3.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i4.MatOption, selector: "mat-option", exportAs: ["matOption"] }] });
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: InputPasswordComponent, decorators: [{
|
|
19
|
+
type: Component,
|
|
20
|
+
args: [{ selector: 'lib-input-password', template: "<input class=\"password\" placeholder=\"Digite sua senha\">\n\n<mat-form-field>\n <mat-label>Toppings</mat-label>\n\n <mat-select multiple #toppings=\"matSelect\">\n <mat-select-trigger>\n {{ toppings.value?.[0] || '' }}\n\n <span\n class=\"example-additional-selection\"\n *ngIf=\"(toppings.value?.length || 0) > 1\"\n >\n (+{{ (toppings.value?.length || 0) - 1 }}\n {{ toppings.value?.length === 2 ? 'other' : 'others' }})\n </span>\n </mat-select-trigger>\n\n <mat-option\n *ngFor=\"let topping of toppingList; let i = index\"\n [value]=\"topping\"\n >\n {{ topping }}\n </mat-option>\n </mat-select>\n</mat-form-field>\n", styles: [".password{font-family:password}\n"] }]
|
|
21
|
+
}], ctorParameters: function () { return []; } });
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtcGFzc3dvcmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdG1sLW1vYmlsaWRhZGUtY29yZS9zcmMvbGliL2NvbXBvbmVudHMvaW5wdXQtcGFzc3dvcmQvaW5wdXQtcGFzc3dvcmQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdG1sLW1vYmlsaWRhZGUtY29yZS9zcmMvbGliL2NvbXBvbmVudHMvaW5wdXQtcGFzc3dvcmQvaW5wdXQtcGFzc3dvcmQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUVsRCxPQUFPLEVBQUMsV0FBVyxFQUFtQyxNQUFNLGdCQUFnQixDQUFDOzs7Ozs7QUFPN0UsTUFBTSxPQUFPLHNCQUFzQjtJQUVqQztRQUlDLGFBQVEsR0FB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YXNzPVwicGFzc3dvcmRcIiAgcGxhY2Vob2xkZXI9XCJEaWdpdGUgc3VhIHNlbmhhXCI+XG5cbjxtYXQtZm9ybS1maWVsZD5cbiAgPG1hdC1sYWJlbD5Ub3BwaW5nczwvbWF0LWxhYmVsPlxuXG4gIDxtYXQtc2VsZWN0IG11bHRpcGxlICN0b3BwaW5ncz1cIm1hdFNlbGVjdFwiPlxuICAgIDxtYXQtc2VsZWN0LXRyaWdnZXI+XG4gICAgICB7eyB0b3BwaW5ncy52YWx1ZT8uWzBdIHx8ICcnIH19XG5cbiAgICAgIDxzcGFuXG4gICAgICAgIGNsYXNzPVwiZXhhbXBsZS1hZGRpdGlvbmFsLXNlbGVjdGlvblwiXG4gICAgICAgICpuZ0lmPVwiKHRvcHBpbmdzLnZhbHVlPy5sZW5ndGggfHwgMCkgPiAxXCJcbiAgICAgID5cbiAgICAgICAgKCt7eyAodG9wcGluZ3MudmFsdWU/Lmxlbmd0aCB8fCAwKSAtIDEgfX1cbiAgICAgICAge3sgdG9wcGluZ3MudmFsdWU/Lmxlbmd0aCA9PT0gMiA/ICdvdGhlcicgOiAnb3RoZXJzJyB9fSlcbiAgICAgIDwvc3Bhbj5cbiAgICA8L21hdC1zZWxlY3QtdHJpZ2dlcj5cblxuICAgIDxtYXQtb3B0aW9uXG4gICAgICAqbmdGb3I9XCJsZXQgdG9wcGluZyBvZiB0b3BwaW5nTGlzdDsgbGV0IGkgPSBpbmRleFwiXG4gICAgICBbdmFsdWVdPVwidG9wcGluZ1wiXG4gICAgPlxuICAgICAge3sgdG9wcGluZyB9fVxuICAgIDwvbWF0LW9wdGlvbj5cbiAgPC9tYXQtc2VsZWN0PlxuPC9tYXQtZm9ybS1maWVsZD5cbiJdfQ==
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class TmlMobilidadeCoreComponent {
|
|
4
|
+
constructor() { }
|
|
5
|
+
ngOnInit() {
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
TmlMobilidadeCoreComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TmlMobilidadeCoreComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9
|
+
TmlMobilidadeCoreComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TmlMobilidadeCoreComponent, selector: "lib-tml-mobilidade-core", ngImport: i0, template: `
|
|
10
|
+
<p>
|
|
11
|
+
tml-mobilidade-core works!
|
|
12
|
+
</p>
|
|
13
|
+
`, isInline: true });
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TmlMobilidadeCoreComponent, decorators: [{
|
|
15
|
+
type: Component,
|
|
16
|
+
args: [{ selector: 'lib-tml-mobilidade-core', template: `
|
|
17
|
+
<p>
|
|
18
|
+
tml-mobilidade-core works!
|
|
19
|
+
</p>
|
|
20
|
+
` }]
|
|
21
|
+
}], ctorParameters: function () { return []; } });
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG1sLW1vYmlsaWRhZGUtY29yZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy90bWwtbW9iaWxpZGFkZS1jb3JlL3NyYy9saWIvdG1sLW1vYmlsaWRhZGUtY29yZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQzs7QUFZbEQsTUFBTSxPQUFPLDBCQUEwQjtJQUVyQyxnQkFBZ0IsQ0FBQztJQUVqQixRQUFRO0lBQ1IsQ0FBQzs7dUhBTFUsMEJBQTBCOzJHQUExQiwwQkFBMEIsK0RBUjNCOzs7O0dBSVQ7MkZBSVUsMEJBQTBCO2tCQVZ0QyxTQUFTOytCQUNFLHlCQUF5QixZQUN6Qjs7OztHQUlUIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBPbkluaXQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnbGliLXRtbC1tb2JpbGlkYWRlLWNvcmUnLFxuICB0ZW1wbGF0ZTogYFxuICAgIDxwPlxuICAgICAgdG1sLW1vYmlsaWRhZGUtY29yZSB3b3JrcyFcbiAgICA8L3A+XG4gIGAsXG4gIHN0eWxlczogW1xuICBdXG59KVxuZXhwb3J0IGNsYXNzIFRtbE1vYmlsaWRhZGVDb3JlQ29tcG9uZW50IGltcGxlbWVudHMgT25Jbml0IHtcblxuICBjb25zdHJ1Y3RvcigpIHsgfVxuXG4gIG5nT25Jbml0KCk6IHZvaWQge1xuICB9XG5cbn1cbiJdfQ==
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { TmlMobilidadeCoreComponent } from './tml-mobilidade-core.component';
|
|
3
|
+
import { ButtonComponent } from './components/button/button.component';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import { InputPasswordComponent } from './components/input-password/input-password.component';
|
|
6
|
+
import { MatSelectModule } from '@angular/material/select';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export class TmlMobilidadeCoreModule {
|
|
9
|
+
}
|
|
10
|
+
TmlMobilidadeCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TmlMobilidadeCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11
|
+
TmlMobilidadeCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: TmlMobilidadeCoreModule, declarations: [TmlMobilidadeCoreComponent,
|
|
12
|
+
ButtonComponent,
|
|
13
|
+
InputPasswordComponent], imports: [CommonModule,
|
|
14
|
+
MatSelectModule], exports: [TmlMobilidadeCoreComponent,
|
|
15
|
+
ButtonComponent,
|
|
16
|
+
InputPasswordComponent,
|
|
17
|
+
MatSelectModule] });
|
|
18
|
+
TmlMobilidadeCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TmlMobilidadeCoreModule, imports: [CommonModule,
|
|
19
|
+
MatSelectModule, MatSelectModule] });
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TmlMobilidadeCoreModule, decorators: [{
|
|
21
|
+
type: NgModule,
|
|
22
|
+
args: [{
|
|
23
|
+
declarations: [
|
|
24
|
+
TmlMobilidadeCoreComponent,
|
|
25
|
+
ButtonComponent,
|
|
26
|
+
InputPasswordComponent
|
|
27
|
+
],
|
|
28
|
+
imports: [
|
|
29
|
+
CommonModule,
|
|
30
|
+
MatSelectModule
|
|
31
|
+
],
|
|
32
|
+
exports: [
|
|
33
|
+
TmlMobilidadeCoreComponent,
|
|
34
|
+
ButtonComponent,
|
|
35
|
+
InputPasswordComponent,
|
|
36
|
+
MatSelectModule
|
|
37
|
+
]
|
|
38
|
+
}]
|
|
39
|
+
}] });
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG1sLW1vYmlsaWRhZGUtY29yZS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy90bWwtbW9iaWxpZGFkZS1jb3JlL3NyYy9saWIvdG1sLW1vYmlsaWRhZGUtY29yZS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWU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VudCc7XG5pbXBvcnQgeyBCdXR0b25Db21wb25lbnQgfSBmcm9tICcuL2NvbXBvbmVudHMvYnV0dG9uL2J1dHRvbi5jb21wb25lbnQnO1xuaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcbmltcG9ydCB7IElucHV0UGFzc3dvcmRDb21wb25lbnQgfSBmcm9tICcuL2NvbXBvbmVudHMvaW5wdXQtcGFzc3dvcmQvaW5wdXQtcGFzc3dvcmQuY29tcG9uZW50JztcbmltcG9ydCB7TWF0U2VsZWN0TW9kdWxlfSBmcm9tICdAYW5ndWxhci9tYXRlcmlhbC9zZWxlY3QnO1xuXG5cblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbXG4gICAgVG1sTW9iaWxpZGFkZUNvcmVDb21wb25lbnQsXG4gICAgQnV0dG9uQ29tcG9uZW50LFxuICAgIElucHV0UGFzc3dvcmRDb21wb25lbnRcbiAgXSxcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZSxcbiAgICBNYXRTZWxlY3RNb2R1bGVcblxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgVG1sTW9iaWxpZGFkZUNvcmVDb21wb25lbnQsXG4gICAgQnV0dG9uQ29tcG9uZW50LFxuICAgIElucHV0UGFzc3dvcmRDb21wb25lbnQsXG4gICAgTWF0U2VsZWN0TW9kdWxlXG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgVG1sTW9iaWxpZGFkZUNvcmVNb2R1bGUgeyB9XG4iXX0=
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from './lib/tml-mobilidade-core.component';
|
|
2
|
+
export * from './lib/tml-mobilidade-core.module';
|
|
3
|
+
export * from './lib/components';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3RtbC1tb2JpbGlkYWRlLWNvcmUvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsY0FBYyxxQ0FBcUMsQ0FBQztBQUNwRCxjQUFjLGtDQUFrQyxDQUFDO0FBQ2pELGNBQWMsa0JBQWtCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJcbmV4cG9ydCAqIGZyb20gJy4vbGliL3RtbC1tb2JpbGlkYWRlLWNvcmUuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3RtbC1tb2JpbGlkYWRlLWNvcmUubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbXBvbmVudHMnO1xuXG4iXX0=
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG1sLW1vYmlsaWRhZGUtY29yZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3RtbC1tb2JpbGlkYWRlLWNvcmUvc3JjL3RtbC1tb2JpbGlkYWRlLWNvcmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, Input, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import { FormControl } from '@angular/forms';
|
|
6
|
+
import * as i2 from '@angular/material/form-field';
|
|
7
|
+
import * as i3 from '@angular/material/select';
|
|
8
|
+
import { MatSelectModule } from '@angular/material/select';
|
|
9
|
+
import * as i4 from '@angular/material/core';
|
|
10
|
+
|
|
11
|
+
class TmlMobilidadeCoreComponent {
|
|
12
|
+
constructor() { }
|
|
13
|
+
ngOnInit() {
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
TmlMobilidadeCoreComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TmlMobilidadeCoreComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
17
|
+
TmlMobilidadeCoreComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TmlMobilidadeCoreComponent, selector: "lib-tml-mobilidade-core", ngImport: i0, template: `
|
|
18
|
+
<p>
|
|
19
|
+
tml-mobilidade-core works!
|
|
20
|
+
</p>
|
|
21
|
+
`, isInline: true });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TmlMobilidadeCoreComponent, decorators: [{
|
|
23
|
+
type: Component,
|
|
24
|
+
args: [{ selector: 'lib-tml-mobilidade-core', template: `
|
|
25
|
+
<p>
|
|
26
|
+
tml-mobilidade-core works!
|
|
27
|
+
</p>
|
|
28
|
+
` }]
|
|
29
|
+
}], ctorParameters: function () { return []; } });
|
|
30
|
+
|
|
31
|
+
class ButtonComponent {
|
|
32
|
+
constructor() {
|
|
33
|
+
this.variant = 'primary';
|
|
34
|
+
this.size = 'md';
|
|
35
|
+
this.iconPath = '';
|
|
36
|
+
}
|
|
37
|
+
teste() {
|
|
38
|
+
console.log('teste da lib');
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
42
|
+
ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: ButtonComponent, selector: "lib-button", inputs: { variant: "variant", size: "size", iconPath: "iconPath" }, ngImport: i0, template: "<button [ngClass]=\"[variant, size]\" (click)=\"teste()\">\n <img src=\"assets/imgs/edit-icon.svg\" alt=\"Icon\" width=\"50\" height=\"50\" />\n <ng-content></ng-content>\n</button>\n", styles: ["button{border:none;cursor:pointer;color:#000;border-radius:4px}button.primary{background-color:#8a2be2!important}button.secondary{background-color:gray}button.sm{padding:5px 10px;font-size:12px}button.md{padding:10px 15px;font-size:14px}button.lg{padding:15px 20px;font-size:16px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
44
|
+
type: Component,
|
|
45
|
+
args: [{ selector: 'lib-button', template: "<button [ngClass]=\"[variant, size]\" (click)=\"teste()\">\n <img src=\"assets/imgs/edit-icon.svg\" alt=\"Icon\" width=\"50\" height=\"50\" />\n <ng-content></ng-content>\n</button>\n", styles: ["button{border:none;cursor:pointer;color:#000;border-radius:4px}button.primary{background-color:#8a2be2!important}button.secondary{background-color:gray}button.sm{padding:5px 10px;font-size:12px}button.md{padding:10px 15px;font-size:14px}button.lg{padding:15px 20px;font-size:16px}\n"] }]
|
|
46
|
+
}], ctorParameters: function () { return []; }, propDecorators: { variant: [{
|
|
47
|
+
type: Input
|
|
48
|
+
}], size: [{
|
|
49
|
+
type: Input
|
|
50
|
+
}], iconPath: [{
|
|
51
|
+
type: Input
|
|
52
|
+
}] } });
|
|
53
|
+
|
|
54
|
+
class InputPasswordComponent {
|
|
55
|
+
constructor() {
|
|
56
|
+
this.toppings = new FormControl('');
|
|
57
|
+
this.toppingList = ['Extra cheese', 'Mushroom', 'Onion', 'Pepperoni', 'Sausage', 'Tomato'];
|
|
58
|
+
}
|
|
59
|
+
ngOnInit() {
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
InputPasswordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: InputPasswordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
63
|
+
InputPasswordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: InputPasswordComponent, selector: "lib-input-password", ngImport: i0, template: "<input class=\"password\" placeholder=\"Digite sua senha\">\n\n<mat-form-field>\n <mat-label>Toppings</mat-label>\n\n <mat-select multiple #toppings=\"matSelect\">\n <mat-select-trigger>\n {{ toppings.value?.[0] || '' }}\n\n <span\n class=\"example-additional-selection\"\n *ngIf=\"(toppings.value?.length || 0) > 1\"\n >\n (+{{ (toppings.value?.length || 0) - 1 }}\n {{ toppings.value?.length === 2 ? 'other' : 'others' }})\n </span>\n </mat-select-trigger>\n\n <mat-option\n *ngFor=\"let topping of toppingList; let i = index\"\n [value]=\"topping\"\n >\n {{ topping }}\n </mat-option>\n </mat-select>\n</mat-form-field>\n", styles: [".password{font-family:password}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "component", type: i3.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "directive", type: i3.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i4.MatOption, selector: "mat-option", exportAs: ["matOption"] }] });
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: InputPasswordComponent, decorators: [{
|
|
65
|
+
type: Component,
|
|
66
|
+
args: [{ selector: 'lib-input-password', template: "<input class=\"password\" placeholder=\"Digite sua senha\">\n\n<mat-form-field>\n <mat-label>Toppings</mat-label>\n\n <mat-select multiple #toppings=\"matSelect\">\n <mat-select-trigger>\n {{ toppings.value?.[0] || '' }}\n\n <span\n class=\"example-additional-selection\"\n *ngIf=\"(toppings.value?.length || 0) > 1\"\n >\n (+{{ (toppings.value?.length || 0) - 1 }}\n {{ toppings.value?.length === 2 ? 'other' : 'others' }})\n </span>\n </mat-select-trigger>\n\n <mat-option\n *ngFor=\"let topping of toppingList; let i = index\"\n [value]=\"topping\"\n >\n {{ topping }}\n </mat-option>\n </mat-select>\n</mat-form-field>\n", styles: [".password{font-family:password}\n"] }]
|
|
67
|
+
}], ctorParameters: function () { return []; } });
|
|
68
|
+
|
|
69
|
+
class TmlMobilidadeCoreModule {
|
|
70
|
+
}
|
|
71
|
+
TmlMobilidadeCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TmlMobilidadeCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
72
|
+
TmlMobilidadeCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: TmlMobilidadeCoreModule, declarations: [TmlMobilidadeCoreComponent,
|
|
73
|
+
ButtonComponent,
|
|
74
|
+
InputPasswordComponent], imports: [CommonModule,
|
|
75
|
+
MatSelectModule], exports: [TmlMobilidadeCoreComponent,
|
|
76
|
+
ButtonComponent,
|
|
77
|
+
InputPasswordComponent,
|
|
78
|
+
MatSelectModule] });
|
|
79
|
+
TmlMobilidadeCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TmlMobilidadeCoreModule, imports: [CommonModule,
|
|
80
|
+
MatSelectModule, MatSelectModule] });
|
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TmlMobilidadeCoreModule, decorators: [{
|
|
82
|
+
type: NgModule,
|
|
83
|
+
args: [{
|
|
84
|
+
declarations: [
|
|
85
|
+
TmlMobilidadeCoreComponent,
|
|
86
|
+
ButtonComponent,
|
|
87
|
+
InputPasswordComponent
|
|
88
|
+
],
|
|
89
|
+
imports: [
|
|
90
|
+
CommonModule,
|
|
91
|
+
MatSelectModule
|
|
92
|
+
],
|
|
93
|
+
exports: [
|
|
94
|
+
TmlMobilidadeCoreComponent,
|
|
95
|
+
ButtonComponent,
|
|
96
|
+
InputPasswordComponent,
|
|
97
|
+
MatSelectModule
|
|
98
|
+
]
|
|
99
|
+
}]
|
|
100
|
+
}] });
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Generated bundle index. Do not edit.
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
export { ButtonComponent, InputPasswordComponent, TmlMobilidadeCoreComponent, TmlMobilidadeCoreModule };
|
|
107
|
+
//# sourceMappingURL=tml-mobilidade-core.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tml-mobilidade-core.mjs","sources":["../../../projects/tml-mobilidade-core/src/lib/tml-mobilidade-core.component.ts","../../../projects/tml-mobilidade-core/src/lib/components/button/button.component.ts","../../../projects/tml-mobilidade-core/src/lib/components/button/button.component.html","../../../projects/tml-mobilidade-core/src/lib/components/input-password/input-password.component.ts","../../../projects/tml-mobilidade-core/src/lib/components/input-password/input-password.component.html","../../../projects/tml-mobilidade-core/src/lib/tml-mobilidade-core.module.ts","../../../projects/tml-mobilidade-core/src/tml-mobilidade-core.ts"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'lib-tml-mobilidade-core',\n template: `\n <p>\n tml-mobilidade-core works!\n </p>\n `,\n styles: [\n ]\n})\nexport class TmlMobilidadeCoreComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","import { Component, Input, OnInit } from '@angular/core';\n\n@Component({\n selector: 'lib-button',\n templateUrl: './button.component.html',\n styleUrls: ['./button.component.scss']\n})\nexport class ButtonComponent {\n\n\n @Input()\n public variant: 'primary' | 'secondary' = 'primary';\n\n @Input()\n public size: 'sm' | 'md' | 'lg' = 'md';\n\n @Input()\n public iconPath: string = '';\n\n constructor() { }\n\n teste(){\n console.log('teste da lib');\n }\n}\n","<button [ngClass]=\"[variant, size]\" (click)=\"teste()\">\n <img src=\"assets/imgs/edit-icon.svg\" alt=\"Icon\" width=\"50\" height=\"50\" />\n <ng-content></ng-content>\n</button>\n","import { Component, OnInit } from '@angular/core';\n\nimport {FormControl, FormsModule, ReactiveFormsModule} from '@angular/forms';\n\n@Component({\n selector: 'lib-input-password',\n templateUrl: './input-password.component.html',\n styleUrls: ['./input-password.component.scss']\n})\nexport class InputPasswordComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit(): void {\n }\n toppings = new FormControl('');\n\n toppingList: string[] = ['Extra cheese', 'Mushroom', 'Onion', 'Pepperoni', 'Sausage', 'Tomato'];\n}\n","<input class=\"password\" placeholder=\"Digite sua senha\">\n\n<mat-form-field>\n <mat-label>Toppings</mat-label>\n\n <mat-select multiple #toppings=\"matSelect\">\n <mat-select-trigger>\n {{ toppings.value?.[0] || '' }}\n\n <span\n class=\"example-additional-selection\"\n *ngIf=\"(toppings.value?.length || 0) > 1\"\n >\n (+{{ (toppings.value?.length || 0) - 1 }}\n {{ toppings.value?.length === 2 ? 'other' : 'others' }})\n </span>\n </mat-select-trigger>\n\n <mat-option\n *ngFor=\"let topping of toppingList; let i = index\"\n [value]=\"topping\"\n >\n {{ topping }}\n </mat-option>\n </mat-select>\n</mat-form-field>\n","import { NgModule } from '@angular/core';\nimport { TmlMobilidadeCoreComponent} from './tml-mobilidade-core.component';\nimport { ButtonComponent } from './components/button/button.component';\nimport { CommonModule } from '@angular/common';\nimport { InputPasswordComponent } from './components/input-password/input-password.component';\nimport {MatSelectModule} from '@angular/material/select';\n\n\n\n@NgModule({\n declarations: [\n TmlMobilidadeCoreComponent,\n ButtonComponent,\n InputPasswordComponent\n ],\n imports: [\n CommonModule,\n MatSelectModule\n\n ],\n exports: [\n TmlMobilidadeCoreComponent,\n ButtonComponent,\n InputPasswordComponent,\n MatSelectModule\n ]\n})\nexport class TmlMobilidadeCoreModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;MAYa,0BAA0B,CAAA;AAErC,IAAA,WAAA,GAAA,GAAiB;IAEjB,QAAQ,GAAA;KACP;;uHALU,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA1B,0BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,0BAA0B,EAR3B,QAAA,EAAA,yBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;AAIT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA;2FAIU,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAVtC,SAAS;YACE,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,yBAAyB,EACzB,QAAA,EAAA,CAAA;;;;AAIT,EAAA,CAAA,EAAA,CAAA;;;MCDU,eAAe,CAAA;AAY1B,IAAA,WAAA,GAAA;AARO,QAAA,IAAO,CAAA,OAAA,GAA4B,SAAS,CAAC;AAG7C,QAAA,IAAI,CAAA,IAAA,GAAuB,IAAI,CAAC;A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
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, Input, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import { FormControl } from '@angular/forms';
|
|
6
|
+
import * as i2 from '@angular/material/form-field';
|
|
7
|
+
import * as i3 from '@angular/material/select';
|
|
8
|
+
import { MatSelectModule } from '@angular/material/select';
|
|
9
|
+
import * as i4 from '@angular/material/core';
|
|
10
|
+
|
|
11
|
+
class TmlMobilidadeCoreComponent {
|
|
12
|
+
constructor() { }
|
|
13
|
+
ngOnInit() {
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
TmlMobilidadeCoreComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TmlMobilidadeCoreComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
17
|
+
TmlMobilidadeCoreComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TmlMobilidadeCoreComponent, selector: "lib-tml-mobilidade-core", ngImport: i0, template: `
|
|
18
|
+
<p>
|
|
19
|
+
tml-mobilidade-core works!
|
|
20
|
+
</p>
|
|
21
|
+
`, isInline: true });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TmlMobilidadeCoreComponent, decorators: [{
|
|
23
|
+
type: Component,
|
|
24
|
+
args: [{ selector: 'lib-tml-mobilidade-core', template: `
|
|
25
|
+
<p>
|
|
26
|
+
tml-mobilidade-core works!
|
|
27
|
+
</p>
|
|
28
|
+
` }]
|
|
29
|
+
}], ctorParameters: function () { return []; } });
|
|
30
|
+
|
|
31
|
+
class ButtonComponent {
|
|
32
|
+
constructor() {
|
|
33
|
+
this.variant = 'primary';
|
|
34
|
+
this.size = 'md';
|
|
35
|
+
this.iconPath = '';
|
|
36
|
+
}
|
|
37
|
+
teste() {
|
|
38
|
+
console.log('teste da lib');
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
42
|
+
ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: ButtonComponent, selector: "lib-button", inputs: { variant: "variant", size: "size", iconPath: "iconPath" }, ngImport: i0, template: "<button [ngClass]=\"[variant, size]\" (click)=\"teste()\">\n <img src=\"assets/imgs/edit-icon.svg\" alt=\"Icon\" width=\"50\" height=\"50\" />\n <ng-content></ng-content>\n</button>\n", styles: ["button{border:none;cursor:pointer;color:#000;border-radius:4px}button.primary{background-color:#8a2be2!important}button.secondary{background-color:gray}button.sm{padding:5px 10px;font-size:12px}button.md{padding:10px 15px;font-size:14px}button.lg{padding:15px 20px;font-size:16px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
44
|
+
type: Component,
|
|
45
|
+
args: [{ selector: 'lib-button', template: "<button [ngClass]=\"[variant, size]\" (click)=\"teste()\">\n <img src=\"assets/imgs/edit-icon.svg\" alt=\"Icon\" width=\"50\" height=\"50\" />\n <ng-content></ng-content>\n</button>\n", styles: ["button{border:none;cursor:pointer;color:#000;border-radius:4px}button.primary{background-color:#8a2be2!important}button.secondary{background-color:gray}button.sm{padding:5px 10px;font-size:12px}button.md{padding:10px 15px;font-size:14px}button.lg{padding:15px 20px;font-size:16px}\n"] }]
|
|
46
|
+
}], ctorParameters: function () { return []; }, propDecorators: { variant: [{
|
|
47
|
+
type: Input
|
|
48
|
+
}], size: [{
|
|
49
|
+
type: Input
|
|
50
|
+
}], iconPath: [{
|
|
51
|
+
type: Input
|
|
52
|
+
}] } });
|
|
53
|
+
|
|
54
|
+
class InputPasswordComponent {
|
|
55
|
+
constructor() {
|
|
56
|
+
this.toppings = new FormControl('');
|
|
57
|
+
this.toppingList = ['Extra cheese', 'Mushroom', 'Onion', 'Pepperoni', 'Sausage', 'Tomato'];
|
|
58
|
+
}
|
|
59
|
+
ngOnInit() {
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
InputPasswordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: InputPasswordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
63
|
+
InputPasswordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: InputPasswordComponent, selector: "lib-input-password", ngImport: i0, template: "<input class=\"password\" placeholder=\"Digite sua senha\">\n\n<mat-form-field>\n <mat-label>Toppings</mat-label>\n\n <mat-select multiple #toppings=\"matSelect\">\n <mat-select-trigger>\n {{ toppings.value?.[0] || '' }}\n\n <span\n class=\"example-additional-selection\"\n *ngIf=\"(toppings.value?.length || 0) > 1\"\n >\n (+{{ (toppings.value?.length || 0) - 1 }}\n {{ toppings.value?.length === 2 ? 'other' : 'others' }})\n </span>\n </mat-select-trigger>\n\n <mat-option\n *ngFor=\"let topping of toppingList; let i = index\"\n [value]=\"topping\"\n >\n {{ topping }}\n </mat-option>\n </mat-select>\n</mat-form-field>\n", styles: [".password{font-family:password}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "component", type: i3.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "directive", type: i3.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i4.MatOption, selector: "mat-option", exportAs: ["matOption"] }] });
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: InputPasswordComponent, decorators: [{
|
|
65
|
+
type: Component,
|
|
66
|
+
args: [{ selector: 'lib-input-password', template: "<input class=\"password\" placeholder=\"Digite sua senha\">\n\n<mat-form-field>\n <mat-label>Toppings</mat-label>\n\n <mat-select multiple #toppings=\"matSelect\">\n <mat-select-trigger>\n {{ toppings.value?.[0] || '' }}\n\n <span\n class=\"example-additional-selection\"\n *ngIf=\"(toppings.value?.length || 0) > 1\"\n >\n (+{{ (toppings.value?.length || 0) - 1 }}\n {{ toppings.value?.length === 2 ? 'other' : 'others' }})\n </span>\n </mat-select-trigger>\n\n <mat-option\n *ngFor=\"let topping of toppingList; let i = index\"\n [value]=\"topping\"\n >\n {{ topping }}\n </mat-option>\n </mat-select>\n</mat-form-field>\n", styles: [".password{font-family:password}\n"] }]
|
|
67
|
+
}], ctorParameters: function () { return []; } });
|
|
68
|
+
|
|
69
|
+
class TmlMobilidadeCoreModule {
|
|
70
|
+
}
|
|
71
|
+
TmlMobilidadeCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TmlMobilidadeCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
72
|
+
TmlMobilidadeCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: TmlMobilidadeCoreModule, declarations: [TmlMobilidadeCoreComponent,
|
|
73
|
+
ButtonComponent,
|
|
74
|
+
InputPasswordComponent], imports: [CommonModule,
|
|
75
|
+
MatSelectModule], exports: [TmlMobilidadeCoreComponent,
|
|
76
|
+
ButtonComponent,
|
|
77
|
+
InputPasswordComponent,
|
|
78
|
+
MatSelectModule] });
|
|
79
|
+
TmlMobilidadeCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TmlMobilidadeCoreModule, imports: [CommonModule,
|
|
80
|
+
MatSelectModule, MatSelectModule] });
|
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TmlMobilidadeCoreModule, decorators: [{
|
|
82
|
+
type: NgModule,
|
|
83
|
+
args: [{
|
|
84
|
+
declarations: [
|
|
85
|
+
TmlMobilidadeCoreComponent,
|
|
86
|
+
ButtonComponent,
|
|
87
|
+
InputPasswordComponent
|
|
88
|
+
],
|
|
89
|
+
imports: [
|
|
90
|
+
CommonModule,
|
|
91
|
+
MatSelectModule
|
|
92
|
+
],
|
|
93
|
+
exports: [
|
|
94
|
+
TmlMobilidadeCoreComponent,
|
|
95
|
+
ButtonComponent,
|
|
96
|
+
InputPasswordComponent,
|
|
97
|
+
MatSelectModule
|
|
98
|
+
]
|
|
99
|
+
}]
|
|
100
|
+
}] });
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Generated bundle index. Do not edit.
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
export { ButtonComponent, InputPasswordComponent, TmlMobilidadeCoreComponent, TmlMobilidadeCoreModule };
|
|
107
|
+
//# sourceMappingURL=tml-mobilidade-core.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tml-mobilidade-core.mjs","sources":["../../../projects/tml-mobilidade-core/src/lib/tml-mobilidade-core.component.ts","../../../projects/tml-mobilidade-core/src/lib/components/button/button.component.ts","../../../projects/tml-mobilidade-core/src/lib/components/button/button.component.html","../../../projects/tml-mobilidade-core/src/lib/components/input-password/input-password.component.ts","../../../projects/tml-mobilidade-core/src/lib/components/input-password/input-password.component.html","../../../projects/tml-mobilidade-core/src/lib/tml-mobilidade-core.module.ts","../../../projects/tml-mobilidade-core/src/tml-mobilidade-core.ts"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'lib-tml-mobilidade-core',\n template: `\n <p>\n tml-mobilidade-core works!\n </p>\n `,\n styles: [\n ]\n})\nexport class TmlMobilidadeCoreComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","import { Component, Input, OnInit } from '@angular/core';\n\n@Component({\n selector: 'lib-button',\n templateUrl: './button.component.html',\n styleUrls: ['./button.component.scss']\n})\nexport class ButtonComponent {\n\n\n @Input()\n public variant: 'primary' | 'secondary' = 'primary';\n\n @Input()\n public size: 'sm' | 'md' | 'lg' = 'md';\n\n @Input()\n public iconPath: string = '';\n\n constructor() { }\n\n teste(){\n console.log('teste da lib');\n }\n}\n","<button [ngClass]=\"[variant, size]\" (click)=\"teste()\">\n <img src=\"assets/imgs/edit-icon.svg\" alt=\"Icon\" width=\"50\" height=\"50\" />\n <ng-content></ng-content>\n</button>\n","import { Component, OnInit } from '@angular/core';\n\nimport {FormControl, FormsModule, ReactiveFormsModule} from '@angular/forms';\n\n@Component({\n selector: 'lib-input-password',\n templateUrl: './input-password.component.html',\n styleUrls: ['./input-password.component.scss']\n})\nexport class InputPasswordComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit(): void {\n }\n toppings = new FormControl('');\n\n toppingList: string[] = ['Extra cheese', 'Mushroom', 'Onion', 'Pepperoni', 'Sausage', 'Tomato'];\n}\n","<input class=\"password\" placeholder=\"Digite sua senha\">\n\n<mat-form-field>\n <mat-label>Toppings</mat-label>\n\n <mat-select multiple #toppings=\"matSelect\">\n <mat-select-trigger>\n {{ toppings.value?.[0] || '' }}\n\n <span\n class=\"example-additional-selection\"\n *ngIf=\"(toppings.value?.length || 0) > 1\"\n >\n (+{{ (toppings.value?.length || 0) - 1 }}\n {{ toppings.value?.length === 2 ? 'other' : 'others' }})\n </span>\n </mat-select-trigger>\n\n <mat-option\n *ngFor=\"let topping of toppingList; let i = index\"\n [value]=\"topping\"\n >\n {{ topping }}\n </mat-option>\n </mat-select>\n</mat-form-field>\n","import { NgModule } from '@angular/core';\nimport { TmlMobilidadeCoreComponent} from './tml-mobilidade-core.component';\nimport { ButtonComponent } from './components/button/button.component';\nimport { CommonModule } from '@angular/common';\nimport { InputPasswordComponent } from './components/input-password/input-password.component';\nimport {MatSelectModule} from '@angular/material/select';\n\n\n\n@NgModule({\n declarations: [\n TmlMobilidadeCoreComponent,\n ButtonComponent,\n InputPasswordComponent\n ],\n imports: [\n CommonModule,\n MatSelectModule\n\n ],\n exports: [\n TmlMobilidadeCoreComponent,\n ButtonComponent,\n InputPasswordComponent,\n MatSelectModule\n ]\n})\nexport class TmlMobilidadeCoreModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;MAYa,0BAA0B,CAAA;AAErC,IAAA,WAAA,GAAA,GAAiB;IAEjB,QAAQ,GAAA;KACP;;uHALU,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA1B,0BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,0BAA0B,EAR3B,QAAA,EAAA,yBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;AAIT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA;2FAIU,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAVtC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,yBAAyB,EACzB,QAAA,EAAA,CAAA;;;;AAIT,EAAA,CAAA,EAAA,CAAA;;;MCDU,eAAe,CA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AO,EAAE;wBACP,0BAA0B;wBAC1B,eAAe;wBACf,sBAAsB;wBACtB,eAAe;AAChB,qBAAA;AACF,iBAAA,CAAA;;;AC1BD;;AAEG;;;;"}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ButtonComponent {
|
|
3
|
+
variant: 'primary' | 'secondary';
|
|
4
|
+
size: 'sm' | 'md' | 'lg';
|
|
5
|
+
iconPath: string;
|
|
6
|
+
constructor();
|
|
7
|
+
teste(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "lib-button", never, { "variant": "variant"; "size": "size"; "iconPath": "iconPath"; }, {}, never, ["*"], false>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class InputPasswordComponent implements OnInit {
|
|
5
|
+
constructor();
|
|
6
|
+
ngOnInit(): void;
|
|
7
|
+
toppings: FormControl<string | null>;
|
|
8
|
+
toppingList: string[];
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputPasswordComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputPasswordComponent, "lib-input-password", never, {}, {}, never, never, false>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TmlMobilidadeCoreComponent implements OnInit {
|
|
4
|
+
constructor();
|
|
5
|
+
ngOnInit(): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TmlMobilidadeCoreComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TmlMobilidadeCoreComponent, "lib-tml-mobilidade-core", never, {}, {}, never, never, false>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./tml-mobilidade-core.component";
|
|
3
|
+
import * as i2 from "./components/button/button.component";
|
|
4
|
+
import * as i3 from "./components/input-password/input-password.component";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
import * as i5 from "@angular/material/select";
|
|
7
|
+
export declare class TmlMobilidadeCoreModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TmlMobilidadeCoreModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TmlMobilidadeCoreModule, [typeof i1.TmlMobilidadeCoreComponent, typeof i2.ButtonComponent, typeof i3.InputPasswordComponent], [typeof i4.CommonModule, typeof i5.MatSelectModule], [typeof i1.TmlMobilidadeCoreComponent, typeof i2.ButtonComponent, typeof i3.InputPasswordComponent, typeof i5.MatSelectModule]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TmlMobilidadeCoreModule>;
|
|
11
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tml-mobilidade-core",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^14.2.0",
|
|
6
|
+
"@angular/core": "^14.2.0",
|
|
7
|
+
"@angular/material": "^14.2.0"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"tslib": "^2.3.0"
|
|
11
|
+
},
|
|
12
|
+
"module": "fesm2015/tml-mobilidade-core.mjs",
|
|
13
|
+
"es2020": "fesm2020/tml-mobilidade-core.mjs",
|
|
14
|
+
"esm2020": "esm2020/tml-mobilidade-core.mjs",
|
|
15
|
+
"fesm2020": "fesm2020/tml-mobilidade-core.mjs",
|
|
16
|
+
"fesm2015": "fesm2015/tml-mobilidade-core.mjs",
|
|
17
|
+
"typings": "index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
"./package.json": {
|
|
20
|
+
"default": "./package.json"
|
|
21
|
+
},
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./index.d.ts",
|
|
24
|
+
"esm2020": "./esm2020/tml-mobilidade-core.mjs",
|
|
25
|
+
"es2020": "./fesm2020/tml-mobilidade-core.mjs",
|
|
26
|
+
"es2015": "./fesm2015/tml-mobilidade-core.mjs",
|
|
27
|
+
"node": "./fesm2015/tml-mobilidade-core.mjs",
|
|
28
|
+
"default": "./fesm2020/tml-mobilidade-core.mjs"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"sideEffects": false
|
|
32
|
+
}
|
package/public-api.d.ts
ADDED