mapa-library-ui 1.2.0 → 1.3.0
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/fesm2022/mapa-library-ui-src-lib-components-capability.mjs +24 -2
- package/fesm2022/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-chart.mjs +28 -6
- package/fesm2022/mapa-library-ui-src-lib-components-chart.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs +27 -5
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs +24 -2
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-filters.mjs +58 -7
- package/fesm2022/mapa-library-ui-src-lib-components-filters.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-form.mjs +139 -16
- package/fesm2022/mapa-library-ui-src-lib-components-form.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-input.mjs +34 -6
- package/fesm2022/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-radio-button.mjs +29 -5
- package/fesm2022/mapa-library-ui-src-lib-components-radio-button.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-slide-toggle.mjs +29 -5
- package/fesm2022/mapa-library-ui-src-lib-components-slide-toggle.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-textarea.mjs +27 -3
- package/fesm2022/mapa-library-ui-src-lib-components-textarea.mjs.map +1 -1
- package/fesm2022/mapa-library-ui.mjs +155 -31
- package/fesm2022/mapa-library-ui.mjs.map +1 -1
- package/index.d.ts +28 -8
- package/mapa-library-ui-1.3.0.tgz +0 -0
- package/package.json +1 -1
- package/src/lib/components/capability/index.d.ts +6 -2
- package/src/lib/components/dropdown/index.d.ts +6 -2
- package/src/lib/components/form/index.d.ts +23 -7
- package/src/lib/components/input/index.d.ts +6 -2
- package/src/lib/components/radio-button/index.d.ts +7 -3
- package/src/lib/components/slide-toggle/index.d.ts +7 -3
- package/src/lib/components/textarea/index.d.ts +6 -2
- package/mapa-library-ui-1.2.0.tgz +0 -0
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormControl, NgModel, AbstractControl, FormGroup } from '@angular/forms';
|
|
1
|
+
import { FormControl, NgModel, AbstractControl, FormGroup, ControlValueAccessor } from '@angular/forms';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { EventEmitter, AfterViewInit, ElementRef, OnChanges, OnDestroy, Renderer2, SimpleChanges, InjectionToken, Provider, PipeTransform, OnInit, ChangeDetectorRef, Injector, TemplateRef, ApplicationRef } from '@angular/core';
|
|
4
4
|
import { ApexAxisChartSeries, ApexChart, ApexTitleSubtitle, ApexXAxis, ApexStroke, ApexFill, ApexMarkers, ApexYAxis, ApexLegend, ApexResponsive } from 'ng-apexcharts';
|
|
@@ -1332,7 +1332,7 @@ declare class MapaDialogComponent {
|
|
|
1332
1332
|
}
|
|
1333
1333
|
declare function openDialog(dialog: MatDialog, dialogData: DialogData, config?: MatDialogConfig): rxjs.Observable<any>;
|
|
1334
1334
|
|
|
1335
|
-
declare class MapaDropdownComponent implements OnInit, OnChanges, AfterViewInit {
|
|
1335
|
+
declare class MapaDropdownComponent implements ControlValueAccessor, OnInit, OnChanges, AfterViewInit {
|
|
1336
1336
|
private readonly i18n;
|
|
1337
1337
|
private readonly cdr;
|
|
1338
1338
|
formControl: FormControl;
|
|
@@ -1350,6 +1350,10 @@ declare class MapaDropdownComponent implements OnInit, OnChanges, AfterViewInit
|
|
|
1350
1350
|
isChecked: boolean;
|
|
1351
1351
|
isOptionsGroup: boolean;
|
|
1352
1352
|
constructor(i18n: MapaI18nService, cdr: ChangeDetectorRef);
|
|
1353
|
+
writeValue(_value: unknown): void;
|
|
1354
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
1355
|
+
registerOnTouched(_fn: () => void): void;
|
|
1356
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
1353
1357
|
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
1354
1358
|
get selectAllLabel(): string;
|
|
1355
1359
|
get selectedOptions(): ElementOption[];
|
|
@@ -1508,11 +1512,15 @@ declare class IconComponent {
|
|
|
1508
1512
|
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "mapa-icon", never, { "svg": { "alias": "svg"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
1509
1513
|
}
|
|
1510
1514
|
|
|
1511
|
-
declare class MapaInputComponent {
|
|
1515
|
+
declare class MapaInputComponent implements ControlValueAccessor {
|
|
1512
1516
|
formControl: FormControl<unknown>;
|
|
1513
1517
|
element: InputText;
|
|
1514
1518
|
type: string;
|
|
1515
1519
|
suffix: EventEmitter<void>;
|
|
1520
|
+
writeValue(_value: unknown): void;
|
|
1521
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
1522
|
+
registerOnTouched(_fn: () => void): void;
|
|
1523
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
1516
1524
|
hasValue(): boolean;
|
|
1517
1525
|
clearValue(): void;
|
|
1518
1526
|
suffixEmit(): void;
|
|
@@ -1543,15 +1551,19 @@ declare class MapaNavListComponent {
|
|
|
1543
1551
|
static ɵcmp: i0.ɵɵComponentDeclaration<MapaNavListComponent, "mapa-nav-list", never, { "options": { "alias": "options"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
|
|
1544
1552
|
}
|
|
1545
1553
|
|
|
1546
|
-
declare class RadioButtonComponent implements OnInit, OnChanges {
|
|
1554
|
+
declare class RadioButtonComponent implements ControlValueAccessor, OnInit, OnChanges {
|
|
1547
1555
|
formControl: FormControl;
|
|
1548
1556
|
element: ElementBase;
|
|
1549
1557
|
optionSelected: EventEmitter<ElementOption>;
|
|
1550
1558
|
selectedOption: ElementOption;
|
|
1551
1559
|
options: ElementOption[];
|
|
1560
|
+
writeValue(_value: unknown): void;
|
|
1561
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
1562
|
+
registerOnTouched(_fn: () => void): void;
|
|
1563
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
1552
1564
|
ngOnInit(): void;
|
|
1553
1565
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1554
|
-
|
|
1566
|
+
onSelectionChange(optionValue: ElementOption): void;
|
|
1555
1567
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, never>;
|
|
1556
1568
|
static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "mapa-radio-button", never, { "formControl": { "alias": "formControl"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, { "optionSelected": "optionSelected"; }, never, never, true, never>;
|
|
1557
1569
|
}
|
|
@@ -1640,15 +1652,19 @@ declare class MapaDetailsComponent {
|
|
|
1640
1652
|
static ɵcmp: i0.ɵɵComponentDeclaration<MapaDetailsComponent, "mapa-details", never, {}, {}, never, never, true, never>;
|
|
1641
1653
|
}
|
|
1642
1654
|
|
|
1643
|
-
declare class SlideToggleComponent implements OnInit, OnChanges {
|
|
1655
|
+
declare class SlideToggleComponent implements ControlValueAccessor, OnInit, OnChanges {
|
|
1644
1656
|
formControl: FormControl;
|
|
1645
1657
|
element: ElementBase;
|
|
1646
1658
|
optionSelected: EventEmitter<ElementOption>;
|
|
1647
1659
|
selectedOption: ElementOption;
|
|
1648
1660
|
options: ElementOption[];
|
|
1661
|
+
writeValue(_value: unknown): void;
|
|
1662
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
1663
|
+
registerOnTouched(_fn: () => void): void;
|
|
1664
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
1649
1665
|
ngOnInit(): void;
|
|
1650
1666
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1651
|
-
|
|
1667
|
+
onSelectionChange(optionValue: ElementOption): void;
|
|
1652
1668
|
static ɵfac: i0.ɵɵFactoryDeclaration<SlideToggleComponent, never>;
|
|
1653
1669
|
static ɵcmp: i0.ɵɵComponentDeclaration<SlideToggleComponent, "mapa-slide-toggle", never, { "formControl": { "alias": "formControl"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, { "optionSelected": "optionSelected"; }, never, never, true, never>;
|
|
1654
1670
|
}
|
|
@@ -1782,9 +1798,13 @@ declare class TagComponent {
|
|
|
1782
1798
|
static ɵcmp: i0.ɵɵComponentDeclaration<TagComponent, "mapa-tag", never, { "tag": { "alias": "tag"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
1783
1799
|
}
|
|
1784
1800
|
|
|
1785
|
-
declare class MapaTextareaComponent {
|
|
1801
|
+
declare class MapaTextareaComponent implements ControlValueAccessor {
|
|
1786
1802
|
formControl: FormControl;
|
|
1787
1803
|
element: Textarea;
|
|
1804
|
+
writeValue(_value: unknown): void;
|
|
1805
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
1806
|
+
registerOnTouched(_fn: () => void): void;
|
|
1807
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
1788
1808
|
static ɵfac: i0.ɵɵFactoryDeclaration<MapaTextareaComponent, never>;
|
|
1789
1809
|
static ɵcmp: i0.ɵɵComponentDeclaration<MapaTextareaComponent, "mapa-textarea", never, { "formControl": { "alias": "formControl"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, {}, never, never, true, never>;
|
|
1790
1810
|
}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { EventEmitter, OnInit, OnChanges, AfterViewInit, ChangeDetectorRef, SimpleChanges, TemplateRef, ElementRef, ApplicationRef } from '@angular/core';
|
|
3
3
|
import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
|
|
4
4
|
import { MapaUiTextGroups, ValidationContext, PartialMapaUiTexts } from 'mapa-frontend-i18n';
|
|
5
|
-
import { FormControl } from '@angular/forms';
|
|
5
|
+
import { FormControl, ControlValueAccessor } from '@angular/forms';
|
|
6
6
|
import { MatCheckboxChange } from '@angular/material/checkbox';
|
|
7
7
|
import { MatSelect } from '@angular/material/select';
|
|
8
8
|
import * as rxjs from 'rxjs';
|
|
@@ -157,7 +157,7 @@ declare class MapaI18nService {
|
|
|
157
157
|
static ɵprov: i0.ɵɵInjectableDeclaration<MapaI18nService>;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
declare class MapaDropdownComponent implements OnInit, OnChanges, AfterViewInit {
|
|
160
|
+
declare class MapaDropdownComponent implements ControlValueAccessor, OnInit, OnChanges, AfterViewInit {
|
|
161
161
|
private readonly i18n;
|
|
162
162
|
private readonly cdr;
|
|
163
163
|
formControl: FormControl;
|
|
@@ -175,6 +175,10 @@ declare class MapaDropdownComponent implements OnInit, OnChanges, AfterViewInit
|
|
|
175
175
|
isChecked: boolean;
|
|
176
176
|
isOptionsGroup: boolean;
|
|
177
177
|
constructor(i18n: MapaI18nService, cdr: ChangeDetectorRef);
|
|
178
|
+
writeValue(_value: unknown): void;
|
|
179
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
180
|
+
registerOnTouched(_fn: () => void): void;
|
|
181
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
178
182
|
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
179
183
|
get selectAllLabel(): string;
|
|
180
184
|
get selectedOptions(): ElementOption[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormControl } from '@angular/forms';
|
|
1
|
+
import { FormControl, ControlValueAccessor } from '@angular/forms';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { EventEmitter, OnInit, OnChanges, AfterViewInit, ChangeDetectorRef, SimpleChanges } from '@angular/core';
|
|
4
4
|
import * as mapa_frontend_i18n from 'mapa-frontend-i18n';
|
|
@@ -145,7 +145,7 @@ declare class MapaI18nService {
|
|
|
145
145
|
static ɵprov: i0.ɵɵInjectableDeclaration<MapaI18nService>;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
declare class MapaDropdownComponent implements OnInit, OnChanges, AfterViewInit {
|
|
148
|
+
declare class MapaDropdownComponent implements ControlValueAccessor, OnInit, OnChanges, AfterViewInit {
|
|
149
149
|
private readonly i18n;
|
|
150
150
|
private readonly cdr;
|
|
151
151
|
formControl: FormControl;
|
|
@@ -163,6 +163,10 @@ declare class MapaDropdownComponent implements OnInit, OnChanges, AfterViewInit
|
|
|
163
163
|
isChecked: boolean;
|
|
164
164
|
isOptionsGroup: boolean;
|
|
165
165
|
constructor(i18n: MapaI18nService, cdr: ChangeDetectorRef);
|
|
166
|
+
writeValue(_value: unknown): void;
|
|
167
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
168
|
+
registerOnTouched(_fn: () => void): void;
|
|
169
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
166
170
|
get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
167
171
|
get selectAllLabel(): string;
|
|
168
172
|
get selectedOptions(): ElementOption[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
|
-
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { FormControl, ControlValueAccessor, FormGroup } from '@angular/forms';
|
|
4
4
|
|
|
5
5
|
declare class ButtonComponent {
|
|
6
6
|
color: 'primary' | 'accent' | 'basic' | null | undefined;
|
|
@@ -131,11 +131,15 @@ declare class InputText extends ElementBase {
|
|
|
131
131
|
controlType: string;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
declare class MapaInputComponent {
|
|
134
|
+
declare class MapaInputComponent implements ControlValueAccessor {
|
|
135
135
|
formControl: FormControl<unknown>;
|
|
136
136
|
element: InputText;
|
|
137
137
|
type: string;
|
|
138
138
|
suffix: EventEmitter<void>;
|
|
139
|
+
writeValue(_value: unknown): void;
|
|
140
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
141
|
+
registerOnTouched(_fn: () => void): void;
|
|
142
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
139
143
|
hasValue(): boolean;
|
|
140
144
|
clearValue(): void;
|
|
141
145
|
suffixEmit(): void;
|
|
@@ -143,28 +147,36 @@ declare class MapaInputComponent {
|
|
|
143
147
|
static ɵcmp: i0.ɵɵComponentDeclaration<MapaInputComponent, "mapa-input", never, { "formControl": { "alias": "formControl"; "required": false; }; "element": { "alias": "element"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, { "suffix": "suffix"; }, never, never, true, never>;
|
|
144
148
|
}
|
|
145
149
|
|
|
146
|
-
declare class RadioButtonComponent implements OnInit, OnChanges {
|
|
150
|
+
declare class RadioButtonComponent implements ControlValueAccessor, OnInit, OnChanges {
|
|
147
151
|
formControl: FormControl;
|
|
148
152
|
element: ElementBase;
|
|
149
153
|
optionSelected: EventEmitter<ElementOption>;
|
|
150
154
|
selectedOption: ElementOption;
|
|
151
155
|
options: ElementOption[];
|
|
156
|
+
writeValue(_value: unknown): void;
|
|
157
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
158
|
+
registerOnTouched(_fn: () => void): void;
|
|
159
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
152
160
|
ngOnInit(): void;
|
|
153
161
|
ngOnChanges(changes: SimpleChanges): void;
|
|
154
|
-
|
|
162
|
+
onSelectionChange(optionValue: ElementOption): void;
|
|
155
163
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, never>;
|
|
156
164
|
static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "mapa-radio-button", never, { "formControl": { "alias": "formControl"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, { "optionSelected": "optionSelected"; }, never, never, true, never>;
|
|
157
165
|
}
|
|
158
166
|
|
|
159
|
-
declare class SlideToggleComponent implements OnInit, OnChanges {
|
|
167
|
+
declare class SlideToggleComponent implements ControlValueAccessor, OnInit, OnChanges {
|
|
160
168
|
formControl: FormControl;
|
|
161
169
|
element: ElementBase;
|
|
162
170
|
optionSelected: EventEmitter<ElementOption>;
|
|
163
171
|
selectedOption: ElementOption;
|
|
164
172
|
options: ElementOption[];
|
|
173
|
+
writeValue(_value: unknown): void;
|
|
174
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
175
|
+
registerOnTouched(_fn: () => void): void;
|
|
176
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
165
177
|
ngOnInit(): void;
|
|
166
178
|
ngOnChanges(changes: SimpleChanges): void;
|
|
167
|
-
|
|
179
|
+
onSelectionChange(optionValue: ElementOption): void;
|
|
168
180
|
static ɵfac: i0.ɵɵFactoryDeclaration<SlideToggleComponent, never>;
|
|
169
181
|
static ɵcmp: i0.ɵɵComponentDeclaration<SlideToggleComponent, "mapa-slide-toggle", never, { "formControl": { "alias": "formControl"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, { "optionSelected": "optionSelected"; }, never, never, true, never>;
|
|
170
182
|
}
|
|
@@ -173,9 +185,13 @@ declare class Textarea extends ElementBase {
|
|
|
173
185
|
controlType: string;
|
|
174
186
|
}
|
|
175
187
|
|
|
176
|
-
declare class MapaTextareaComponent {
|
|
188
|
+
declare class MapaTextareaComponent implements ControlValueAccessor {
|
|
177
189
|
formControl: FormControl;
|
|
178
190
|
element: Textarea;
|
|
191
|
+
writeValue(_value: unknown): void;
|
|
192
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
193
|
+
registerOnTouched(_fn: () => void): void;
|
|
194
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
179
195
|
static ɵfac: i0.ɵɵFactoryDeclaration<MapaTextareaComponent, never>;
|
|
180
196
|
static ɵcmp: i0.ɵɵComponentDeclaration<MapaTextareaComponent, "mapa-textarea", never, { "formControl": { "alias": "formControl"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, {}, never, never, true, never>;
|
|
181
197
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EventEmitter } from '@angular/core';
|
|
3
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { FormControl, ControlValueAccessor } from '@angular/forms';
|
|
4
4
|
|
|
5
5
|
interface ElementTreeNode {
|
|
6
6
|
key: string;
|
|
@@ -122,11 +122,15 @@ declare class InputText extends ElementBase {
|
|
|
122
122
|
controlType: string;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
declare class MapaInputComponent {
|
|
125
|
+
declare class MapaInputComponent implements ControlValueAccessor {
|
|
126
126
|
formControl: FormControl<unknown>;
|
|
127
127
|
element: InputText;
|
|
128
128
|
type: string;
|
|
129
129
|
suffix: EventEmitter<void>;
|
|
130
|
+
writeValue(_value: unknown): void;
|
|
131
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
132
|
+
registerOnTouched(_fn: () => void): void;
|
|
133
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
130
134
|
hasValue(): boolean;
|
|
131
135
|
clearValue(): void;
|
|
132
136
|
suffixEmit(): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { FormControl, ControlValueAccessor } from '@angular/forms';
|
|
4
4
|
|
|
5
5
|
interface ElementTreeNode {
|
|
6
6
|
key: string;
|
|
@@ -118,15 +118,19 @@ declare class ElementBase {
|
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
declare class RadioButtonComponent implements OnInit, OnChanges {
|
|
121
|
+
declare class RadioButtonComponent implements ControlValueAccessor, OnInit, OnChanges {
|
|
122
122
|
formControl: FormControl;
|
|
123
123
|
element: ElementBase;
|
|
124
124
|
optionSelected: EventEmitter<ElementOption>;
|
|
125
125
|
selectedOption: ElementOption;
|
|
126
126
|
options: ElementOption[];
|
|
127
|
+
writeValue(_value: unknown): void;
|
|
128
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
129
|
+
registerOnTouched(_fn: () => void): void;
|
|
130
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
127
131
|
ngOnInit(): void;
|
|
128
132
|
ngOnChanges(changes: SimpleChanges): void;
|
|
129
|
-
|
|
133
|
+
onSelectionChange(optionValue: ElementOption): void;
|
|
130
134
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, never>;
|
|
131
135
|
static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "mapa-radio-button", never, { "formControl": { "alias": "formControl"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, { "optionSelected": "optionSelected"; }, never, never, true, never>;
|
|
132
136
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { FormControl, ControlValueAccessor } from '@angular/forms';
|
|
4
4
|
|
|
5
5
|
interface ElementTreeNode {
|
|
6
6
|
key: string;
|
|
@@ -118,15 +118,19 @@ declare class ElementBase {
|
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
declare class SlideToggleComponent implements OnInit, OnChanges {
|
|
121
|
+
declare class SlideToggleComponent implements ControlValueAccessor, OnInit, OnChanges {
|
|
122
122
|
formControl: FormControl;
|
|
123
123
|
element: ElementBase;
|
|
124
124
|
optionSelected: EventEmitter<ElementOption>;
|
|
125
125
|
selectedOption: ElementOption;
|
|
126
126
|
options: ElementOption[];
|
|
127
|
+
writeValue(_value: unknown): void;
|
|
128
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
129
|
+
registerOnTouched(_fn: () => void): void;
|
|
130
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
127
131
|
ngOnInit(): void;
|
|
128
132
|
ngOnChanges(changes: SimpleChanges): void;
|
|
129
|
-
|
|
133
|
+
onSelectionChange(optionValue: ElementOption): void;
|
|
130
134
|
static ɵfac: i0.ɵɵFactoryDeclaration<SlideToggleComponent, never>;
|
|
131
135
|
static ɵcmp: i0.ɵɵComponentDeclaration<SlideToggleComponent, "mapa-slide-toggle", never, { "formControl": { "alias": "formControl"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, { "optionSelected": "optionSelected"; }, never, never, true, never>;
|
|
132
136
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormControl } from '@angular/forms';
|
|
1
|
+
import { FormControl, ControlValueAccessor } from '@angular/forms';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { EventEmitter } from '@angular/core';
|
|
4
4
|
|
|
@@ -122,9 +122,13 @@ declare class Textarea extends ElementBase {
|
|
|
122
122
|
controlType: string;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
declare class MapaTextareaComponent {
|
|
125
|
+
declare class MapaTextareaComponent implements ControlValueAccessor {
|
|
126
126
|
formControl: FormControl;
|
|
127
127
|
element: Textarea;
|
|
128
|
+
writeValue(_value: unknown): void;
|
|
129
|
+
registerOnChange(_fn: (value: unknown) => void): void;
|
|
130
|
+
registerOnTouched(_fn: () => void): void;
|
|
131
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
128
132
|
static ɵfac: i0.ɵɵFactoryDeclaration<MapaTextareaComponent, never>;
|
|
129
133
|
static ɵcmp: i0.ɵɵComponentDeclaration<MapaTextareaComponent, "mapa-textarea", never, { "formControl": { "alias": "formControl"; "required": false; }; "element": { "alias": "element"; "required": false; }; }, {}, never, never, true, never>;
|
|
130
134
|
}
|
|
Binary file
|