mapa-library-ui 0.0.44 → 0.0.46

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 (84) hide show
  1. package/esm2020/lib/core/elements/element-base.mjs +16 -12
  2. package/esm2020/lib/core/elements/errors.mjs +2 -0
  3. package/esm2020/lib/core/elements/radio-button.mjs +8 -0
  4. package/esm2020/lib/core/elements/textarea.mjs +8 -0
  5. package/esm2020/public-api.mjs +3 -1
  6. package/esm2020/src/lib/components/dialog/lib/components/dialog/src/dialog.component.mjs +2 -2
  7. package/esm2020/src/lib/components/dropdown/lib/core/elements/element-base.mjs +16 -12
  8. package/esm2020/src/lib/components/dropdown/lib/core/elements/errors.mjs +2 -0
  9. package/esm2020/src/lib/components/input/src/input.component.mjs +3 -3
  10. package/esm2020/src/lib/components/radio-button/lib/components/radio-button/public-api.mjs +6 -0
  11. package/esm2020/src/lib/components/radio-button/lib/components/radio-button/src/radio-button.component.mjs +26 -0
  12. package/esm2020/src/lib/components/radio-button/{src → lib/components/radio-button/src}/radio-button.module.mjs +1 -1
  13. package/esm2020/src/lib/components/radio-button/lib/core/elements/element-base.mjs +26 -0
  14. package/esm2020/src/lib/components/radio-button/lib/core/elements/element-search.mjs +2 -0
  15. package/esm2020/src/lib/components/radio-button/lib/core/elements/errors.mjs +2 -0
  16. package/esm2020/src/lib/components/radio-button/lib/core/interfaces/option.interface.mjs +2 -0
  17. package/esm2020/src/lib/components/radio-button/mapa-library-ui-src-lib-components-radio-button.mjs +2 -2
  18. package/esm2020/src/lib/components/radio-button/radio-button.mjs +5 -0
  19. package/esm2020/src/lib/components/textarea/lib/components/textarea/public-api.mjs +6 -0
  20. package/esm2020/src/lib/components/textarea/lib/components/textarea/src/textarea.component.mjs +20 -0
  21. package/esm2020/src/lib/components/textarea/lib/components/textarea/src/textarea.module.mjs +43 -0
  22. package/esm2020/src/lib/components/textarea/lib/core/elements/element-base.mjs +26 -0
  23. package/esm2020/src/lib/components/textarea/lib/core/elements/element-search.mjs +2 -0
  24. package/esm2020/src/lib/components/textarea/lib/core/elements/errors.mjs +2 -0
  25. package/esm2020/src/lib/components/textarea/lib/core/elements/textarea.mjs +8 -0
  26. package/esm2020/src/lib/components/textarea/lib/core/interfaces/option.interface.mjs +2 -0
  27. package/esm2020/src/lib/components/textarea/mapa-library-ui-src-lib-components-textarea.mjs +5 -0
  28. package/esm2020/src/lib/components/textarea/textarea.mjs +5 -0
  29. package/fesm2015/mapa-library-ui-src-lib-components-dialog.mjs +2 -2
  30. package/fesm2015/mapa-library-ui-src-lib-components-dialog.mjs.map +1 -1
  31. package/fesm2015/mapa-library-ui-src-lib-components-dropdown.mjs +15 -11
  32. package/fesm2015/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
  33. package/fesm2015/mapa-library-ui-src-lib-components-input.mjs +2 -2
  34. package/fesm2015/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
  35. package/fesm2015/mapa-library-ui-src-lib-components-radio-button.mjs +10 -6
  36. package/fesm2015/mapa-library-ui-src-lib-components-radio-button.mjs.map +1 -1
  37. package/fesm2015/mapa-library-ui-src-lib-components-textarea.mjs +75 -0
  38. package/fesm2015/mapa-library-ui-src-lib-components-textarea.mjs.map +1 -0
  39. package/fesm2015/mapa-library-ui.mjs +30 -12
  40. package/fesm2015/mapa-library-ui.mjs.map +1 -1
  41. package/fesm2020/mapa-library-ui-src-lib-components-dialog.mjs +2 -2
  42. package/fesm2020/mapa-library-ui-src-lib-components-dialog.mjs.map +1 -1
  43. package/fesm2020/mapa-library-ui-src-lib-components-dropdown.mjs +15 -11
  44. package/fesm2020/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
  45. package/fesm2020/mapa-library-ui-src-lib-components-input.mjs +2 -2
  46. package/fesm2020/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
  47. package/fesm2020/mapa-library-ui-src-lib-components-radio-button.mjs +10 -6
  48. package/fesm2020/mapa-library-ui-src-lib-components-radio-button.mjs.map +1 -1
  49. package/fesm2020/mapa-library-ui-src-lib-components-textarea.mjs +75 -0
  50. package/fesm2020/mapa-library-ui-src-lib-components-textarea.mjs.map +1 -0
  51. package/fesm2020/mapa-library-ui.mjs +30 -12
  52. package/fesm2020/mapa-library-ui.mjs.map +1 -1
  53. package/lib/core/elements/element-base.d.ts +11 -2
  54. package/lib/core/elements/errors.d.ts +7 -0
  55. package/lib/core/elements/radio-button.d.ts +4 -0
  56. package/lib/core/elements/textarea.d.ts +4 -0
  57. package/mapa-library-ui-0.0.46.tgz +0 -0
  58. package/package.json +9 -1
  59. package/public-api.d.ts +2 -0
  60. package/src/lib/components/dropdown/lib/core/elements/element-base.d.ts +11 -2
  61. package/src/lib/components/dropdown/lib/core/elements/errors.d.ts +7 -0
  62. package/src/lib/components/radio-button/index.d.ts +1 -1
  63. package/src/lib/components/radio-button/lib/components/radio-button/src/radio-button.component.d.ts +15 -0
  64. package/src/lib/components/radio-button/lib/core/elements/element-base.d.ts +49 -0
  65. package/src/lib/components/radio-button/lib/core/elements/element-search.d.ts +6 -0
  66. package/src/lib/components/radio-button/lib/core/elements/errors.d.ts +7 -0
  67. package/src/lib/components/radio-button/lib/core/interfaces/option.interface.d.ts +4 -0
  68. package/src/lib/components/radio-button/radio-button.d.ts +1 -0
  69. package/src/lib/components/textarea/index.d.ts +5 -0
  70. package/src/lib/components/textarea/lib/components/textarea/public-api.d.ts +2 -0
  71. package/src/lib/components/textarea/lib/components/textarea/src/textarea.component.d.ts +9 -0
  72. package/src/lib/components/textarea/lib/components/textarea/src/textarea.module.d.ts +12 -0
  73. package/src/lib/components/textarea/lib/core/elements/element-base.d.ts +49 -0
  74. package/src/lib/components/textarea/lib/core/elements/element-search.d.ts +6 -0
  75. package/src/lib/components/textarea/lib/core/elements/errors.d.ts +7 -0
  76. package/src/lib/components/textarea/lib/core/elements/textarea.d.ts +4 -0
  77. package/src/lib/components/textarea/lib/core/interfaces/option.interface.d.ts +4 -0
  78. package/src/lib/components/textarea/textarea.d.ts +1 -0
  79. package/esm2020/src/lib/components/radio-button/public-api.mjs +0 -6
  80. package/esm2020/src/lib/components/radio-button/src/radio-button.component.mjs +0 -26
  81. package/mapa-library-ui-0.0.44.tgz +0 -0
  82. package/src/lib/components/radio-button/src/radio-button.component.d.ts +0 -15
  83. /package/src/lib/components/radio-button/{public-api.d.ts → lib/components/radio-button/public-api.d.ts} +0 -0
  84. /package/src/lib/components/radio-button/{src → lib/components/radio-button/src}/radio-button.module.d.ts +0 -0
@@ -0,0 +1,49 @@
1
+ import { ElementOption } from "../interfaces/option.interface";
2
+ import { ElementSearch } from "./element-search";
3
+ import { Errors } from "./errors";
4
+ export declare class ElementBase {
5
+ value: string;
6
+ key: string;
7
+ label: string;
8
+ required: boolean;
9
+ order: number;
10
+ controlType: string;
11
+ type: string;
12
+ placeholder?: string;
13
+ hint?: string;
14
+ prefix?: string;
15
+ suffix?: string;
16
+ autosize?: boolean;
17
+ autosizeMinWidth?: string;
18
+ autosizeMaxWidth?: string;
19
+ autosizeMinRow?: number;
20
+ autosizeMaxRow?: number;
21
+ options: ElementOption[];
22
+ multiple?: boolean;
23
+ search?: ElementSearch;
24
+ maxLength: string | number | null;
25
+ errors?: Errors;
26
+ constructor(options?: {
27
+ value?: string;
28
+ key?: string;
29
+ label?: string;
30
+ required?: boolean;
31
+ order?: number;
32
+ controlType?: string;
33
+ type?: string;
34
+ placeholder?: string;
35
+ hint?: string;
36
+ prefix?: string;
37
+ suffix?: string;
38
+ autosize?: boolean;
39
+ autosizeMinWidth?: string;
40
+ autosizeMaxWidth?: string;
41
+ autosizeMinRow?: number;
42
+ autosizeMaxRow?: number;
43
+ options?: ElementOption[];
44
+ multiple?: boolean;
45
+ search?: ElementSearch;
46
+ maxLength?: string | number | null;
47
+ errors?: Errors;
48
+ });
49
+ }
@@ -0,0 +1,6 @@
1
+ import { FormControl } from "@angular/forms";
2
+ export interface ElementSearch {
3
+ placeholder?: string;
4
+ noEntriesFoundLabel?: string;
5
+ formControl?: FormControl;
6
+ }
@@ -0,0 +1,7 @@
1
+ export interface Errors {
2
+ required?: string;
3
+ minlength?: string;
4
+ cpf?: string;
5
+ cnpj?: string;
6
+ email?: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ import { ElementBase } from './element-base';
2
+ export declare class Textarea extends ElementBase {
3
+ controlType: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ export interface ElementOption {
2
+ key: string;
3
+ value: string;
4
+ }
@@ -0,0 +1 @@
1
+ export * from './lib/components/textarea/public-api';
@@ -1,6 +0,0 @@
1
- /*
2
- * Public API Surface of mapa-library-ui icon
3
- */
4
- export * from './src/radio-button.component';
5
- export * from './src/radio-button.module';
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21hcGEtbGlicmFyeS11aS9zcmMvbGliL2NvbXBvbmVudHMvcmFkaW8tYnV0dG9uL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLDhCQUE4QixDQUFDO0FBQzdDLGNBQWMsMkJBQTJCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIG1hcGEtbGlicmFyeS11aSBpY29uXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9zcmMvcmFkaW8tYnV0dG9uLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL3NyYy9yYWRpby1idXR0b24ubW9kdWxlJzsiXX0=
@@ -1,26 +0,0 @@
1
- import { Component, EventEmitter, Input, Output } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@angular/common";
4
- import * as i2 from "@angular/material/radio";
5
- export class RadioButtonComponent {
6
- constructor() {
7
- this.options = [];
8
- this.optionSelected = new EventEmitter();
9
- this.selectedOption = '';
10
- }
11
- onChange(optionValue) {
12
- this.selectedOption = optionValue;
13
- this.optionSelected.emit(this.selectedOption);
14
- }
15
- }
16
- RadioButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RadioButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
17
- RadioButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: RadioButtonComponent, selector: "mapa-radio-button", inputs: { options: "options" }, outputs: { optionSelected: "optionSelected" }, ngImport: i0, template: "<div class=\"custom-radio-button\">\n <mat-radio-group [value]=\"selectedOption\" (change)=\"onChange($event.value)\">\n <mat-radio-button *ngFor=\"let option of options\" [value]=\"option.value\">{{ option.label }}</mat-radio-button>\n </mat-radio-group>\n</div>\n", styles: [".custom-radio-button{color:#000;font-family:SF-Pro;font-size:20px;font-style:normal;font-weight:400;line-height:28px}.custom-radio-button .mat-mdc-radio-button.mat-accent{--mdc-radio-selected-focus-icon-color: #000;--mdc-radio-selected-icon-color: #000;--mdc-radio-selected-pressed-icon-color: #000;--mat-radio-ripple-color: #000;--mat-radio-checked-ripple-color: #000;--mdc-radio-selected-hover-icon-color: #000}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { kind: "component", type: i2.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }] });
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RadioButtonComponent, decorators: [{
19
- type: Component,
20
- args: [{ selector: 'mapa-radio-button', template: "<div class=\"custom-radio-button\">\n <mat-radio-group [value]=\"selectedOption\" (change)=\"onChange($event.value)\">\n <mat-radio-button *ngFor=\"let option of options\" [value]=\"option.value\">{{ option.label }}</mat-radio-button>\n </mat-radio-group>\n</div>\n", styles: [".custom-radio-button{color:#000;font-family:SF-Pro;font-size:20px;font-style:normal;font-weight:400;line-height:28px}.custom-radio-button .mat-mdc-radio-button.mat-accent{--mdc-radio-selected-focus-icon-color: #000;--mdc-radio-selected-icon-color: #000;--mdc-radio-selected-pressed-icon-color: #000;--mat-radio-ripple-color: #000;--mat-radio-checked-ripple-color: #000;--mdc-radio-selected-hover-icon-color: #000}\n"] }]
21
- }], ctorParameters: function () { return []; }, propDecorators: { options: [{
22
- type: Input
23
- }], optionSelected: [{
24
- type: Output
25
- }] } });
26
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFkaW8tYnV0dG9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21hcGEtbGlicmFyeS11aS9zcmMvbGliL2NvbXBvbmVudHMvcmFkaW8tYnV0dG9uL3NyYy9yYWRpby1idXR0b24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbWFwYS1saWJyYXJ5LXVpL3NyYy9saWIvY29tcG9uZW50cy9yYWRpby1idXR0b24vc3JjL3JhZGlvLWJ1dHRvbi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7O0FBWXZFLE1BQU0sT0FBTyxvQkFBb0I7SUFLL0I7UUFKUyxZQUFPLEdBQXdCLEVBQUUsQ0FBQztRQUNqQyxtQkFBYyxHQUF5QixJQUFJLFlBQVksRUFBVSxDQUFDO1FBQzVF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aW5nID0gJyc7XG5cbiAgY29uc3RydWN0b3IoKSB7IH1cblxuICBvbkNoYW5nZShvcHRpb25WYWx1ZTogc3RyaW5nKSB7XG4gICAgdGhpcy5zZWxlY3RlZE9wdGlvbiA9IG9wdGlvblZhbHVlO1xuICAgIHRoaXMub3B0aW9uU2VsZWN0ZWQuZW1pdCh0aGlzLnNlbGVjdGVkT3B0aW9uKTtcbiAgfVxufVxuIiwiPGRpdiBjbGFzcz1cImN1c3RvbS1yYWRpby1idXR0b25cIj5cbiAgICA8bWF0LXJhZGlvLWdyb3VwIFt2YWx1ZV09XCJzZWxlY3RlZE9wdGlvblwiIChjaGFuZ2UpPVwib25DaGFuZ2UoJGV2ZW50LnZhbHVlKVwiPlxuICAgICAgICA8bWF0LXJhZGlvLWJ1dHRvbiAqbmdGb3I9XCJsZXQgb3B0aW9uIG9mIG9wdGlvbnNcIiBbdmFsdWVdPVwib3B0aW9uLnZhbHVlXCI+e3sgb3B0aW9uLmxhYmVsIH19PC9tYXQtcmFkaW8tYnV0dG9uPlxuICAgIDwvbWF0LXJhZGlvLWdyb3VwPlxuPC9kaXY+XG4iXX0=
Binary file
@@ -1,15 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export interface RadioButtonOption {
4
- value: string;
5
- label: string;
6
- }
7
- export declare class RadioButtonComponent {
8
- options: RadioButtonOption[];
9
- optionSelected: EventEmitter<string>;
10
- selectedOption: string;
11
- constructor();
12
- onChange(optionValue: string): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "mapa-radio-button", never, { "options": "options"; }, { "optionSelected": "optionSelected"; }, never, never, false, never>;
15
- }