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.
- package/esm2020/lib/core/elements/element-base.mjs +16 -12
- package/esm2020/lib/core/elements/errors.mjs +2 -0
- package/esm2020/lib/core/elements/radio-button.mjs +8 -0
- package/esm2020/lib/core/elements/textarea.mjs +8 -0
- package/esm2020/public-api.mjs +3 -1
- package/esm2020/src/lib/components/dialog/lib/components/dialog/src/dialog.component.mjs +2 -2
- package/esm2020/src/lib/components/dropdown/lib/core/elements/element-base.mjs +16 -12
- package/esm2020/src/lib/components/dropdown/lib/core/elements/errors.mjs +2 -0
- package/esm2020/src/lib/components/input/src/input.component.mjs +3 -3
- package/esm2020/src/lib/components/radio-button/lib/components/radio-button/public-api.mjs +6 -0
- package/esm2020/src/lib/components/radio-button/lib/components/radio-button/src/radio-button.component.mjs +26 -0
- package/esm2020/src/lib/components/radio-button/{src → lib/components/radio-button/src}/radio-button.module.mjs +1 -1
- package/esm2020/src/lib/components/radio-button/lib/core/elements/element-base.mjs +26 -0
- package/esm2020/src/lib/components/radio-button/lib/core/elements/element-search.mjs +2 -0
- package/esm2020/src/lib/components/radio-button/lib/core/elements/errors.mjs +2 -0
- package/esm2020/src/lib/components/radio-button/lib/core/interfaces/option.interface.mjs +2 -0
- package/esm2020/src/lib/components/radio-button/mapa-library-ui-src-lib-components-radio-button.mjs +2 -2
- package/esm2020/src/lib/components/radio-button/radio-button.mjs +5 -0
- package/esm2020/src/lib/components/textarea/lib/components/textarea/public-api.mjs +6 -0
- package/esm2020/src/lib/components/textarea/lib/components/textarea/src/textarea.component.mjs +20 -0
- package/esm2020/src/lib/components/textarea/lib/components/textarea/src/textarea.module.mjs +43 -0
- package/esm2020/src/lib/components/textarea/lib/core/elements/element-base.mjs +26 -0
- package/esm2020/src/lib/components/textarea/lib/core/elements/element-search.mjs +2 -0
- package/esm2020/src/lib/components/textarea/lib/core/elements/errors.mjs +2 -0
- package/esm2020/src/lib/components/textarea/lib/core/elements/textarea.mjs +8 -0
- package/esm2020/src/lib/components/textarea/lib/core/interfaces/option.interface.mjs +2 -0
- package/esm2020/src/lib/components/textarea/mapa-library-ui-src-lib-components-textarea.mjs +5 -0
- package/esm2020/src/lib/components/textarea/textarea.mjs +5 -0
- package/fesm2015/mapa-library-ui-src-lib-components-dialog.mjs +2 -2
- package/fesm2015/mapa-library-ui-src-lib-components-dialog.mjs.map +1 -1
- package/fesm2015/mapa-library-ui-src-lib-components-dropdown.mjs +15 -11
- package/fesm2015/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
- package/fesm2015/mapa-library-ui-src-lib-components-input.mjs +2 -2
- package/fesm2015/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
- package/fesm2015/mapa-library-ui-src-lib-components-radio-button.mjs +10 -6
- package/fesm2015/mapa-library-ui-src-lib-components-radio-button.mjs.map +1 -1
- package/fesm2015/mapa-library-ui-src-lib-components-textarea.mjs +75 -0
- package/fesm2015/mapa-library-ui-src-lib-components-textarea.mjs.map +1 -0
- package/fesm2015/mapa-library-ui.mjs +30 -12
- package/fesm2015/mapa-library-ui.mjs.map +1 -1
- package/fesm2020/mapa-library-ui-src-lib-components-dialog.mjs +2 -2
- package/fesm2020/mapa-library-ui-src-lib-components-dialog.mjs.map +1 -1
- package/fesm2020/mapa-library-ui-src-lib-components-dropdown.mjs +15 -11
- package/fesm2020/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
- package/fesm2020/mapa-library-ui-src-lib-components-input.mjs +2 -2
- package/fesm2020/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
- package/fesm2020/mapa-library-ui-src-lib-components-radio-button.mjs +10 -6
- package/fesm2020/mapa-library-ui-src-lib-components-radio-button.mjs.map +1 -1
- package/fesm2020/mapa-library-ui-src-lib-components-textarea.mjs +75 -0
- package/fesm2020/mapa-library-ui-src-lib-components-textarea.mjs.map +1 -0
- package/fesm2020/mapa-library-ui.mjs +30 -12
- package/fesm2020/mapa-library-ui.mjs.map +1 -1
- package/lib/core/elements/element-base.d.ts +11 -2
- package/lib/core/elements/errors.d.ts +7 -0
- package/lib/core/elements/radio-button.d.ts +4 -0
- package/lib/core/elements/textarea.d.ts +4 -0
- package/mapa-library-ui-0.0.46.tgz +0 -0
- package/package.json +9 -1
- package/public-api.d.ts +2 -0
- package/src/lib/components/dropdown/lib/core/elements/element-base.d.ts +11 -2
- package/src/lib/components/dropdown/lib/core/elements/errors.d.ts +7 -0
- package/src/lib/components/radio-button/index.d.ts +1 -1
- package/src/lib/components/radio-button/lib/components/radio-button/src/radio-button.component.d.ts +15 -0
- package/src/lib/components/radio-button/lib/core/elements/element-base.d.ts +49 -0
- package/src/lib/components/radio-button/lib/core/elements/element-search.d.ts +6 -0
- package/src/lib/components/radio-button/lib/core/elements/errors.d.ts +7 -0
- package/src/lib/components/radio-button/lib/core/interfaces/option.interface.d.ts +4 -0
- package/src/lib/components/radio-button/radio-button.d.ts +1 -0
- package/src/lib/components/textarea/index.d.ts +5 -0
- package/src/lib/components/textarea/lib/components/textarea/public-api.d.ts +2 -0
- package/src/lib/components/textarea/lib/components/textarea/src/textarea.component.d.ts +9 -0
- package/src/lib/components/textarea/lib/components/textarea/src/textarea.module.d.ts +12 -0
- package/src/lib/components/textarea/lib/core/elements/element-base.d.ts +49 -0
- package/src/lib/components/textarea/lib/core/elements/element-search.d.ts +6 -0
- package/src/lib/components/textarea/lib/core/elements/errors.d.ts +7 -0
- package/src/lib/components/textarea/lib/core/elements/textarea.d.ts +4 -0
- package/src/lib/components/textarea/lib/core/interfaces/option.interface.d.ts +4 -0
- package/src/lib/components/textarea/textarea.d.ts +1 -0
- package/esm2020/src/lib/components/radio-button/public-api.mjs +0 -6
- package/esm2020/src/lib/components/radio-button/src/radio-button.component.mjs +0 -26
- package/mapa-library-ui-0.0.44.tgz +0 -0
- package/src/lib/components/radio-button/src/radio-button.component.d.ts +0 -15
- /package/src/lib/components/radio-button/{public-api.d.ts → lib/components/radio-button/public-api.d.ts} +0 -0
- /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 @@
|
|
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFkaW8tYnV0dG9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21hcGEtbGlicmFyeS11aS9zcmMvbGliL2NvbXBvbmVudHMvcmFkaW8tYnV0dG9uL3NyYy9yYWRpby1idXR0b24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbWFwYS1saWJyYXJ5LXVpL3NyYy9saWIvY29tcG9uZW50cy9yYWRpby1idXR0b24vc3JjL3JhZGlvLWJ1dHRvbi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7O0FBWXZFLE1BQU0sT0FBTyxvQkFBb0I7SUFLL0I7UUFKUyxZQUFPLEdBQXdCLEVBQUUsQ0FBQztRQUNqQyxtQk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XI8c3RyaW5nPigpO1xuICBzZWxlY3RlZE9wdGlvbjogc3RyaW5nID0gJyc7XG5cbiAgY29uc3RydWN0b3IoKSB7IH1cblxuICBvbkNoYW5nZShvcHRpb25WYWx1ZTogc3RyaW5nKSB7XG4gICAgdGhpcy5zZWxlY3RlZE9wdGlvbiA9IG9wdGlvblZhbHVlO1xuICAgIHRoaXMub3B0aW9uU2VsZWN0ZWQuZW1pdCh0aGlzLnNlbGVjdGVkT3B0aW9uKTtcbiAgfVxufVxuIiwiPGRpdiBjbGFzcz1cImN1c3RvbS1yYWRpby1idXR0b25cIj5cbiAgICA8bWF0LXJhZGlvLWdyb3VwIFt2YWx1ZV09XCJzZWxlY3RlZE9wdGlvblwiIChjaGFuZ2UpPVwib25DaGFuZ2UoJGV2ZW50LnZhbHVlKVwiPlxuICAgICAgICA8bWF0LXJhZGlvLWJ1dHRvbiAqbmdGb3I9XCJsZXQgb3B0aW9uIG9mIG9wdGlvbnNcIiBbdmFsdWVdPVwib3B0aW9uLnZhbHVlXCI+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
|
-
}
|
|
File without changes
|
|
File without changes
|