mapa-library-ui 0.16.2 → 0.16.4

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 (135) hide show
  1. package/esm2020/lib/core/elements/action-button.mjs +2 -0
  2. package/esm2020/lib/core/elements/element-base.mjs +2 -1
  3. package/esm2020/lib/core/elements/errors.mjs +1 -1
  4. package/esm2020/src/lib/components/capability/lib/components/dropdown/src/dropdown.component.mjs +8 -7
  5. package/esm2020/src/lib/components/capability/lib/components/dropdown/src/dropdown.module.mjs +9 -1
  6. package/esm2020/src/lib/components/capability/lib/core/elements/action-button.mjs +2 -0
  7. package/esm2020/src/lib/components/capability/lib/core/elements/element-base.mjs +2 -1
  8. package/esm2020/src/lib/components/capability/lib/core/elements/errors.mjs +1 -1
  9. package/esm2020/src/lib/components/chart/lib/components/button/public-api.mjs +6 -0
  10. package/esm2020/src/lib/components/chart/lib/components/button/src/button.component.mjs +23 -0
  11. package/esm2020/src/lib/components/chart/lib/components/button/src/button.module.mjs +19 -0
  12. package/esm2020/src/lib/components/chart/lib/components/dropdown/src/dropdown.component.mjs +8 -7
  13. package/esm2020/src/lib/components/chart/lib/components/dropdown/src/dropdown.module.mjs +9 -1
  14. package/esm2020/src/lib/components/chart/lib/core/elements/action-button.mjs +2 -0
  15. package/esm2020/src/lib/components/chart/lib/core/elements/element-base.mjs +2 -1
  16. package/esm2020/src/lib/components/chart/lib/core/elements/errors.mjs +1 -1
  17. package/esm2020/src/lib/components/dropdown/lib/components/button/public-api.mjs +6 -0
  18. package/esm2020/src/lib/components/dropdown/lib/components/button/src/button.component.mjs +23 -0
  19. package/esm2020/src/lib/components/dropdown/lib/components/button/src/button.module.mjs +19 -0
  20. package/esm2020/src/lib/components/dropdown/lib/components/dropdown/src/dropdown.component.mjs +8 -7
  21. package/esm2020/src/lib/components/dropdown/lib/components/dropdown/src/dropdown.module.mjs +9 -1
  22. package/esm2020/src/lib/components/dropdown/lib/core/elements/action-button.mjs +2 -0
  23. package/esm2020/src/lib/components/dropdown/lib/core/elements/element-base.mjs +2 -1
  24. package/esm2020/src/lib/components/dropdown/lib/core/elements/errors.mjs +1 -1
  25. package/esm2020/src/lib/components/form/form.mjs +9 -0
  26. package/esm2020/src/lib/components/form/lib/components/button/public-api.mjs +6 -0
  27. package/esm2020/src/lib/components/form/lib/components/button/src/button.component.mjs +23 -0
  28. package/esm2020/src/lib/components/form/lib/components/button/src/button.module.mjs +19 -0
  29. package/esm2020/src/lib/components/form/lib/components/form/public-api.mjs +6 -0
  30. package/esm2020/src/lib/components/form/lib/components/form/src/form.component.mjs +29 -0
  31. package/esm2020/src/lib/components/form/lib/components/form/src/form.module.mjs +31 -0
  32. package/esm2020/src/lib/components/form/lib/components/input/public-api.mjs +6 -0
  33. package/esm2020/src/lib/components/form/lib/components/input/src/input.component.mjs +38 -0
  34. package/esm2020/src/lib/components/form/lib/components/input/src/input.module.mjs +50 -0
  35. package/esm2020/src/lib/components/form/lib/components/radio-button/public-api.mjs +6 -0
  36. package/esm2020/src/lib/components/form/lib/components/radio-button/src/radio-button.component.mjs +31 -0
  37. package/esm2020/src/lib/components/form/lib/components/radio-button/src/radio-button.module.mjs +35 -0
  38. package/esm2020/src/lib/components/form/lib/components/textarea/public-api.mjs +6 -0
  39. package/esm2020/src/lib/components/form/lib/components/textarea/src/textarea.component.mjs +20 -0
  40. package/esm2020/src/lib/components/form/lib/components/textarea/src/textarea.module.mjs +43 -0
  41. package/esm2020/src/lib/components/form/lib/core/elements/action-button.mjs +2 -0
  42. package/esm2020/src/lib/components/form/lib/core/elements/element-base.mjs +27 -0
  43. package/esm2020/src/lib/components/form/lib/core/elements/element-search.mjs +2 -0
  44. package/esm2020/src/lib/components/form/lib/core/elements/errors.mjs +2 -0
  45. package/esm2020/src/lib/components/form/lib/core/elements/textarea.mjs +8 -0
  46. package/esm2020/src/lib/components/form/lib/core/interfaces/element-group.interface.mjs +2 -0
  47. package/esm2020/src/lib/components/form/lib/core/interfaces/element-option.interface.mjs +2 -0
  48. package/esm2020/src/lib/components/form/mapa-library-ui-src-lib-components-form.mjs +5 -0
  49. package/esm2020/src/lib/components/input/src/input.component.mjs +7 -6
  50. package/esm2020/src/lib/components/input/src/input.module.mjs +20 -16
  51. package/esm2020/src/lib/components/radio-button/lib/core/elements/action-button.mjs +2 -0
  52. package/esm2020/src/lib/components/radio-button/lib/core/elements/element-base.mjs +2 -1
  53. package/esm2020/src/lib/components/radio-button/lib/core/elements/errors.mjs +1 -1
  54. package/esm2020/src/lib/components/textarea/lib/core/elements/action-button.mjs +2 -0
  55. package/esm2020/src/lib/components/textarea/lib/core/elements/element-base.mjs +2 -1
  56. package/esm2020/src/lib/components/textarea/lib/core/elements/errors.mjs +1 -1
  57. package/fesm2015/mapa-library-ui-src-lib-components-capability.mjs +15 -8
  58. package/fesm2015/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
  59. package/fesm2015/mapa-library-ui-src-lib-components-chart.mjs +53 -7
  60. package/fesm2015/mapa-library-ui-src-lib-components-chart.mjs.map +1 -1
  61. package/fesm2015/mapa-library-ui-src-lib-components-dropdown.mjs +54 -7
  62. package/fesm2015/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
  63. package/fesm2015/mapa-library-ui-src-lib-components-form.mjs +309 -0
  64. package/fesm2015/mapa-library-ui-src-lib-components-form.mjs.map +1 -0
  65. package/fesm2015/mapa-library-ui-src-lib-components-input.mjs +17 -12
  66. package/fesm2015/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
  67. package/fesm2015/mapa-library-ui.mjs +1 -0
  68. package/fesm2015/mapa-library-ui.mjs.map +1 -1
  69. package/fesm2020/mapa-library-ui-src-lib-components-capability.mjs +15 -8
  70. package/fesm2020/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
  71. package/fesm2020/mapa-library-ui-src-lib-components-chart.mjs +53 -7
  72. package/fesm2020/mapa-library-ui-src-lib-components-chart.mjs.map +1 -1
  73. package/fesm2020/mapa-library-ui-src-lib-components-dropdown.mjs +54 -7
  74. package/fesm2020/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
  75. package/fesm2020/mapa-library-ui-src-lib-components-form.mjs +309 -0
  76. package/fesm2020/mapa-library-ui-src-lib-components-form.mjs.map +1 -0
  77. package/fesm2020/mapa-library-ui-src-lib-components-input.mjs +17 -12
  78. package/fesm2020/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
  79. package/fesm2020/mapa-library-ui.mjs +1 -0
  80. package/fesm2020/mapa-library-ui.mjs.map +1 -1
  81. package/lib/core/elements/action-button.d.ts +5 -0
  82. package/lib/core/elements/element-base.d.ts +3 -0
  83. package/lib/core/elements/errors.d.ts +5 -0
  84. package/mapa-library-ui-0.16.4.tgz +0 -0
  85. package/package.json +9 -1
  86. package/src/lib/components/capability/lib/components/dropdown/src/dropdown.module.d.ts +7 -5
  87. package/src/lib/components/capability/lib/core/elements/action-button.d.ts +5 -0
  88. package/src/lib/components/capability/lib/core/elements/element-base.d.ts +3 -0
  89. package/src/lib/components/capability/lib/core/elements/errors.d.ts +5 -0
  90. package/src/lib/components/chart/lib/components/button/public-api.d.ts +2 -0
  91. package/src/lib/components/chart/lib/components/button/src/button.component.d.ts +10 -0
  92. package/src/lib/components/chart/lib/components/button/src/button.module.d.ts +9 -0
  93. package/src/lib/components/chart/lib/components/dropdown/src/dropdown.module.d.ts +7 -5
  94. package/src/lib/components/chart/lib/core/elements/action-button.d.ts +5 -0
  95. package/src/lib/components/chart/lib/core/elements/element-base.d.ts +3 -0
  96. package/src/lib/components/chart/lib/core/elements/errors.d.ts +5 -0
  97. package/src/lib/components/dropdown/lib/components/button/public-api.d.ts +2 -0
  98. package/src/lib/components/dropdown/lib/components/button/src/button.component.d.ts +10 -0
  99. package/src/lib/components/dropdown/lib/components/button/src/button.module.d.ts +9 -0
  100. package/src/lib/components/dropdown/lib/components/dropdown/src/dropdown.module.d.ts +7 -5
  101. package/src/lib/components/dropdown/lib/core/elements/action-button.d.ts +5 -0
  102. package/src/lib/components/dropdown/lib/core/elements/element-base.d.ts +3 -0
  103. package/src/lib/components/dropdown/lib/core/elements/errors.d.ts +5 -0
  104. package/src/lib/components/form/form.d.ts +5 -0
  105. package/src/lib/components/form/index.d.ts +5 -0
  106. package/src/lib/components/form/lib/components/button/public-api.d.ts +2 -0
  107. package/src/lib/components/form/lib/components/button/src/button.component.d.ts +10 -0
  108. package/src/lib/components/form/lib/components/button/src/button.module.d.ts +9 -0
  109. package/src/lib/components/form/lib/components/form/public-api.d.ts +2 -0
  110. package/src/lib/components/form/lib/components/form/src/form.component.d.ts +11 -0
  111. package/src/lib/components/form/lib/components/form/src/form.module.d.ts +12 -0
  112. package/src/lib/components/form/lib/components/input/public-api.d.ts +2 -0
  113. package/src/lib/components/form/lib/components/input/src/input.component.d.ts +15 -0
  114. package/src/lib/components/form/lib/components/input/src/input.module.d.ts +15 -0
  115. package/src/lib/components/form/lib/components/radio-button/public-api.d.ts +2 -0
  116. package/src/lib/components/form/lib/components/radio-button/src/radio-button.component.d.ts +17 -0
  117. package/src/lib/components/form/lib/components/radio-button/src/radio-button.module.d.ts +11 -0
  118. package/src/lib/components/form/lib/components/textarea/public-api.d.ts +2 -0
  119. package/src/lib/components/form/lib/components/textarea/src/textarea.component.d.ts +9 -0
  120. package/src/lib/components/form/lib/components/textarea/src/textarea.module.d.ts +12 -0
  121. package/src/lib/components/form/lib/core/elements/action-button.d.ts +5 -0
  122. package/src/lib/components/form/lib/core/elements/element-base.d.ts +53 -0
  123. package/src/lib/components/form/lib/core/elements/element-search.d.ts +6 -0
  124. package/src/lib/components/form/lib/core/elements/errors.d.ts +12 -0
  125. package/src/lib/components/form/lib/core/elements/textarea.d.ts +4 -0
  126. package/src/lib/components/form/lib/core/interfaces/element-group.interface.d.ts +5 -0
  127. package/src/lib/components/form/lib/core/interfaces/element-option.interface.d.ts +4 -0
  128. package/src/lib/components/input/src/input.module.d.ts +6 -4
  129. package/src/lib/components/radio-button/lib/core/elements/action-button.d.ts +5 -0
  130. package/src/lib/components/radio-button/lib/core/elements/element-base.d.ts +3 -0
  131. package/src/lib/components/radio-button/lib/core/elements/errors.d.ts +5 -0
  132. package/src/lib/components/textarea/lib/core/elements/action-button.d.ts +5 -0
  133. package/src/lib/components/textarea/lib/core/elements/element-base.d.ts +3 -0
  134. package/src/lib/components/textarea/lib/core/elements/errors.d.ts +5 -0
  135. package/mapa-library-ui-0.16.2.tgz +0 -0
@@ -0,0 +1,5 @@
1
+ import { EventEmitter } from "@angular/core";
2
+ export interface ActionButton {
3
+ label: string;
4
+ action: EventEmitter<any>;
5
+ }
@@ -1,5 +1,6 @@
1
1
  import { ElementGroup } from "../interfaces/element-group.interface";
2
2
  import { ElementOption } from "../interfaces/element-option.interface";
3
+ import { ActionButton } from "./action-button";
3
4
  import { ElementSearch } from "./element-search";
4
5
  import { Errors } from "./errors";
5
6
  export declare class ElementBase {
@@ -24,6 +25,7 @@ export declare class ElementBase {
24
25
  search?: ElementSearch;
25
26
  maxLength: string | number | null;
26
27
  errors?: Errors;
28
+ actionButton?: ActionButton;
27
29
  constructor(options?: {
28
30
  value?: string;
29
31
  key?: string;
@@ -46,5 +48,6 @@ export declare class ElementBase {
46
48
  search?: ElementSearch;
47
49
  maxLength?: string | number | null;
48
50
  errors?: Errors;
51
+ actionButton?: ActionButton;
49
52
  });
50
53
  }
@@ -4,4 +4,9 @@ export interface Errors {
4
4
  cpf?: string;
5
5
  cnpj?: string;
6
6
  email?: string;
7
+ pattern?: string;
8
+ min?: string;
9
+ max?: string;
10
+ minLength?: string;
11
+ maxLength?: string;
7
12
  }
@@ -0,0 +1,5 @@
1
+ export * from './lib/components/button/public-api';
2
+ export * from './lib/components/input/public-api';
3
+ export * from './lib/components/radio-button/public-api';
4
+ export * from './lib/components/textarea/public-api';
5
+ export * from './lib/components/form/public-api';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="mapa-library-ui/src/lib/components/form" />
5
+ export * from './form';
@@ -0,0 +1,2 @@
1
+ export * from './src/button.component';
2
+ export * from './src/button.module';
@@ -0,0 +1,10 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ButtonComponent {
4
+ color: 'primary' | 'accent' | 'basic' | null | undefined;
5
+ disabled: boolean;
6
+ clicked: EventEmitter<void>;
7
+ onClick(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "mapa-button", never, { "color": "color"; "disabled": "disabled"; }, { "clicked": "clicked"; }, never, ["*"], false, never>;
10
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./button.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/material/button";
5
+ export declare class MapaButtonModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaButtonModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapaButtonModule, [typeof i1.ButtonComponent], [typeof i2.CommonModule, typeof i3.MatButtonModule], [typeof i1.ButtonComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<MapaButtonModule>;
9
+ }
@@ -0,0 +1,2 @@
1
+ export * from './src/form.component';
2
+ export * from './src/form.module';
@@ -0,0 +1,11 @@
1
+ import { FormControl, FormGroup } from '@angular/forms';
2
+ import { ElementBase, ElementOption } from 'mapa-library-ui';
3
+ import * as i0 from "@angular/core";
4
+ export declare class MapaFormComponent {
5
+ formGroup: FormGroup;
6
+ elements: ElementBase[];
7
+ getFormControl(element: ElementBase): FormControl<any>;
8
+ onOptionSelected(optionValue: ElementOption): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaFormComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapaFormComponent, "mapa-form", never, { "formGroup": "formGroup"; "elements": "elements"; }, {}, never, never, false, never>;
11
+ }
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./form.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "mapa-library-ui/src/lib/components/input";
5
+ import * as i4 from "mapa-library-ui/src/lib/components/dropdown";
6
+ import * as i5 from "mapa-library-ui/src/lib/components/radio-button";
7
+ import * as i6 from "mapa-library-ui/src/lib/components/textarea";
8
+ export declare class MapaFormModule {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaFormModule, never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapaFormModule, [typeof i1.MapaFormComponent], [typeof i2.CommonModule, typeof i3.MapaInputModule, typeof i4.MapaDropdownModule, typeof i5.MapaRadioButtonModule, typeof i6.MapaTextareaModule], [typeof i1.MapaFormComponent]>;
11
+ static ɵinj: i0.ɵɵInjectorDeclaration<MapaFormModule>;
12
+ }
@@ -0,0 +1,2 @@
1
+ export * from './src/input.component';
2
+ export * from './src/input.module';
@@ -0,0 +1,15 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { InputText } from 'mapa-library-ui';
4
+ import * as i0 from "@angular/core";
5
+ export declare class MapaInputComponent {
6
+ formControl: FormControl;
7
+ element: InputText;
8
+ type: string;
9
+ suffix: EventEmitter<any>;
10
+ hasValue(): boolean;
11
+ clearValue(): void;
12
+ suffixEmit(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaInputComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapaInputComponent, "mapa-input", never, { "formControl": "formControl"; "element": "element"; "type": "type"; }, { "suffix": "suffix"; }, never, never, false, never>;
15
+ }
@@ -0,0 +1,15 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./input.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ import * as i4 from "@angular/material/form-field";
6
+ import * as i5 from "@angular/material/button";
7
+ import * as i6 from "mapa-library-ui/src/lib/components/button";
8
+ import * as i7 from "@angular/material/input";
9
+ import * as i8 from "@angular/material/icon";
10
+ import * as i9 from "mapa-library-ui";
11
+ export declare class MapaInputModule {
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaInputModule, never>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapaInputModule, [typeof i1.MapaInputComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.MatFormFieldModule, typeof i5.MatButtonModule, typeof i6.MapaButtonModule, typeof i7.MatInputModule, typeof i8.MatIconModule, typeof i9.MatInputAutosizeDirective], [typeof i1.MapaInputComponent]>;
14
+ static ɵinj: i0.ɵɵInjectorDeclaration<MapaInputModule>;
15
+ }
@@ -0,0 +1,2 @@
1
+ export * from './src/radio-button.component';
2
+ export * from './src/radio-button.module';
@@ -0,0 +1,17 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { ElementOption } from '../../../core/interfaces/element-option.interface';
4
+ import { ElementBase } from '../../../core/elements/element-base';
5
+ import * as i0 from "@angular/core";
6
+ export declare class RadioButtonComponent implements OnInit {
7
+ formControl: FormControl;
8
+ element: ElementBase;
9
+ optionSelected: EventEmitter<ElementOption>;
10
+ selectedOption: ElementOption;
11
+ options: ElementOption[];
12
+ constructor();
13
+ ngOnInit(): void;
14
+ onChange(optionValue: ElementOption): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "mapa-radio-button", never, { "formControl": "formControl"; "element": "element"; }, { "optionSelected": "optionSelected"; }, never, never, false, never>;
17
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./radio-button.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ import * as i4 from "@angular/material/radio";
6
+ import * as i5 from "@angular/material/form-field";
7
+ export declare class MapaRadioButtonModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaRadioButtonModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapaRadioButtonModule, [typeof i1.RadioButtonComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.MatRadioModule, typeof i5.MatFormFieldModule], [typeof i1.RadioButtonComponent]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<MapaRadioButtonModule>;
11
+ }
@@ -0,0 +1,2 @@
1
+ export * from './src/textarea.component';
2
+ export * from './src/textarea.module';
@@ -0,0 +1,9 @@
1
+ import { FormControl } from '@angular/forms';
2
+ import { Textarea } from '../../../core/elements/textarea';
3
+ import * as i0 from "@angular/core";
4
+ export declare class MapaTextareaComponent {
5
+ formControl: FormControl;
6
+ element: Textarea;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaTextareaComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapaTextareaComponent, "mapa-textarea", never, { "formControl": "formControl"; "element": "element"; }, {}, never, never, false, never>;
9
+ }
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./textarea.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ import * as i4 from "@angular/material/form-field";
6
+ import * as i5 from "@angular/material/input";
7
+ import * as i6 from "@angular/material/icon";
8
+ export declare class MapaTextareaModule {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaTextareaModule, never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapaTextareaModule, [typeof i1.MapaTextareaComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.MatFormFieldModule, typeof i5.MatInputModule, typeof i6.MatIconModule], [typeof i1.MapaTextareaComponent]>;
11
+ static ɵinj: i0.ɵɵInjectorDeclaration<MapaTextareaModule>;
12
+ }
@@ -0,0 +1,5 @@
1
+ import { EventEmitter } from "@angular/core";
2
+ export interface ActionButton {
3
+ label: string;
4
+ action: EventEmitter<any>;
5
+ }
@@ -0,0 +1,53 @@
1
+ import { ElementGroup } from "../interfaces/element-group.interface";
2
+ import { ElementOption } from "../interfaces/element-option.interface";
3
+ import { ActionButton } from "./action-button";
4
+ import { ElementSearch } from "./element-search";
5
+ import { Errors } from "./errors";
6
+ export declare class ElementBase {
7
+ value: string;
8
+ key: string;
9
+ label: string;
10
+ required: boolean;
11
+ order: number;
12
+ controlType: string;
13
+ type: string;
14
+ placeholder?: string;
15
+ hint?: string;
16
+ prefix?: string;
17
+ suffix?: string;
18
+ autosize?: boolean;
19
+ autosizeMinWidth?: string;
20
+ autosizeMaxWidth?: string;
21
+ autosizeMinRow?: number;
22
+ autosizeMaxRow?: number;
23
+ options: ElementOption[] | ElementGroup[];
24
+ multiple?: boolean;
25
+ search?: ElementSearch;
26
+ maxLength: string | number | null;
27
+ errors?: Errors;
28
+ actionButton?: ActionButton;
29
+ constructor(options?: {
30
+ value?: string;
31
+ key?: string;
32
+ label?: string;
33
+ required?: boolean;
34
+ order?: number;
35
+ controlType?: string;
36
+ type?: string;
37
+ placeholder?: string;
38
+ hint?: string;
39
+ prefix?: string;
40
+ suffix?: string;
41
+ autosize?: boolean;
42
+ autosizeMinWidth?: string;
43
+ autosizeMaxWidth?: string;
44
+ autosizeMinRow?: number;
45
+ autosizeMaxRow?: number;
46
+ options?: ElementOption[] | ElementGroup[];
47
+ multiple?: boolean;
48
+ search?: ElementSearch;
49
+ maxLength?: string | number | null;
50
+ errors?: Errors;
51
+ actionButton?: ActionButton;
52
+ });
53
+ }
@@ -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,12 @@
1
+ export interface Errors {
2
+ required?: string;
3
+ minlength?: string;
4
+ cpf?: string;
5
+ cnpj?: string;
6
+ email?: string;
7
+ pattern?: string;
8
+ min?: string;
9
+ max?: string;
10
+ minLength?: string;
11
+ maxLength?: string;
12
+ }
@@ -0,0 +1,4 @@
1
+ import { ElementBase } from './element-base';
2
+ export declare class Textarea extends ElementBase {
3
+ controlType: string;
4
+ }
@@ -0,0 +1,5 @@
1
+ import { ElementOption } from "./element-option.interface";
2
+ export interface ElementGroup {
3
+ label: string;
4
+ options: ElementOption[];
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface ElementOption {
2
+ key: string;
3
+ value: string;
4
+ }
@@ -3,11 +3,13 @@ import * as i1 from "./input.component";
3
3
  import * as i2 from "@angular/common";
4
4
  import * as i3 from "@angular/forms";
5
5
  import * as i4 from "@angular/material/form-field";
6
- import * as i5 from "@angular/material/input";
7
- import * as i6 from "@angular/material/icon";
8
- import * as i7 from "mapa-library-ui";
6
+ import * as i5 from "@angular/material/button";
7
+ import * as i6 from "mapa-library-ui/src/lib/components/button";
8
+ import * as i7 from "@angular/material/input";
9
+ import * as i8 from "@angular/material/icon";
10
+ import * as i9 from "mapa-library-ui";
9
11
  export declare class MapaInputModule {
10
12
  static ɵfac: i0.ɵɵFactoryDeclaration<MapaInputModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<MapaInputModule, [typeof i1.MapaInputComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.MatFormFieldModule, typeof i5.MatInputModule, typeof i6.MatIconModule, typeof i7.MatInputAutosizeDirective], [typeof i1.MapaInputComponent]>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapaInputModule, [typeof i1.MapaInputComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.MatFormFieldModule, typeof i5.MatButtonModule, typeof i6.MapaButtonModule, typeof i7.MatInputModule, typeof i8.MatIconModule, typeof i9.MatInputAutosizeDirective], [typeof i1.MapaInputComponent]>;
12
14
  static ɵinj: i0.ɵɵInjectorDeclaration<MapaInputModule>;
13
15
  }
@@ -0,0 +1,5 @@
1
+ import { EventEmitter } from "@angular/core";
2
+ export interface ActionButton {
3
+ label: string;
4
+ action: EventEmitter<any>;
5
+ }
@@ -1,5 +1,6 @@
1
1
  import { ElementGroup } from "../interfaces/element-group.interface";
2
2
  import { ElementOption } from "../interfaces/element-option.interface";
3
+ import { ActionButton } from "./action-button";
3
4
  import { ElementSearch } from "./element-search";
4
5
  import { Errors } from "./errors";
5
6
  export declare class ElementBase {
@@ -24,6 +25,7 @@ export declare class ElementBase {
24
25
  search?: ElementSearch;
25
26
  maxLength: string | number | null;
26
27
  errors?: Errors;
28
+ actionButton?: ActionButton;
27
29
  constructor(options?: {
28
30
  value?: string;
29
31
  key?: string;
@@ -46,5 +48,6 @@ export declare class ElementBase {
46
48
  search?: ElementSearch;
47
49
  maxLength?: string | number | null;
48
50
  errors?: Errors;
51
+ actionButton?: ActionButton;
49
52
  });
50
53
  }
@@ -4,4 +4,9 @@ export interface Errors {
4
4
  cpf?: string;
5
5
  cnpj?: string;
6
6
  email?: string;
7
+ pattern?: string;
8
+ min?: string;
9
+ max?: string;
10
+ minLength?: string;
11
+ maxLength?: string;
7
12
  }
@@ -0,0 +1,5 @@
1
+ import { EventEmitter } from "@angular/core";
2
+ export interface ActionButton {
3
+ label: string;
4
+ action: EventEmitter<any>;
5
+ }
@@ -1,5 +1,6 @@
1
1
  import { ElementGroup } from "../interfaces/element-group.interface";
2
2
  import { ElementOption } from "../interfaces/element-option.interface";
3
+ import { ActionButton } from "./action-button";
3
4
  import { ElementSearch } from "./element-search";
4
5
  import { Errors } from "./errors";
5
6
  export declare class ElementBase {
@@ -24,6 +25,7 @@ export declare class ElementBase {
24
25
  search?: ElementSearch;
25
26
  maxLength: string | number | null;
26
27
  errors?: Errors;
28
+ actionButton?: ActionButton;
27
29
  constructor(options?: {
28
30
  value?: string;
29
31
  key?: string;
@@ -46,5 +48,6 @@ export declare class ElementBase {
46
48
  search?: ElementSearch;
47
49
  maxLength?: string | number | null;
48
50
  errors?: Errors;
51
+ actionButton?: ActionButton;
49
52
  });
50
53
  }
@@ -4,4 +4,9 @@ export interface Errors {
4
4
  cpf?: string;
5
5
  cnpj?: string;
6
6
  email?: string;
7
+ pattern?: string;
8
+ min?: string;
9
+ max?: string;
10
+ minLength?: string;
11
+ maxLength?: string;
7
12
  }
Binary file