@igo2/common 1.13.0-alpha.0 → 1.13.0-alpha.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/esm2020/lib/entity/entity-table/entity-table.component.mjs +5 -5
- package/esm2020/lib/form/form-field/form-field-select.component.mjs +1 -1
- package/esm2020/lib/form/form-field/form-field-text.component.mjs +1 -1
- package/esm2020/lib/form/form-field/form-field-textarea.component.mjs +1 -1
- package/esm2020/lib/form/form-group/form-group.component.mjs +1 -1
- package/esm2020/lib/form/shared/form.interfaces.mjs +1 -1
- package/esm2020/lib/form/shared/form.service.mjs +3 -3
- package/esm2020/lib/list/list.component.mjs +2 -2
- package/fesm2015/igo2-common.mjs +8 -8
- package/fesm2015/igo2-common.mjs.map +1 -1
- package/fesm2020/igo2-common.mjs +8 -8
- package/fesm2020/igo2-common.mjs.map +1 -1
- package/lib/entity/entity-table/entity-table.component.d.ts +3 -3
- package/lib/form/form-field/form-field-select.component.d.ts +2 -2
- package/lib/form/form-field/form-field-text.component.d.ts +2 -2
- package/lib/form/form-field/form-field-textarea.component.d.ts +2 -2
- package/lib/form/form-group/form-group.component.d.ts +2 -2
- package/lib/form/shared/form.interfaces.d.ts +4 -4
- package/lib/form/shared/form.service.d.ts +2 -2
- package/package.json +6 -6
|
@@ -4,7 +4,7 @@ import { EntityRecord, EntityState, EntityStore, EntityTableTemplate, EntityTabl
|
|
|
4
4
|
import { MatPaginator } from '@angular/material/paginator';
|
|
5
5
|
import { MatTableDataSource } from '@angular/material/table';
|
|
6
6
|
import { EntityTablePaginatorOptions } from '../entity-table-paginator/entity-table-paginator.interface';
|
|
7
|
-
import {
|
|
7
|
+
import { FormBuilder, NgControl, NgForm, FormControlName, FormGroup } from '@angular/forms';
|
|
8
8
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
9
9
|
import { DateAdapter, ErrorStateMatcher } from '@angular/material/core';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
@@ -19,7 +19,7 @@ export declare class EntityTableComponent implements OnInit, OnChanges, OnDestro
|
|
|
19
19
|
protected _defaultErrorStateMatcher: ErrorStateMatcher;
|
|
20
20
|
private dateAdapter;
|
|
21
21
|
entitySortChange$: BehaviorSubject<boolean>;
|
|
22
|
-
formGroup:
|
|
22
|
+
formGroup: FormGroup;
|
|
23
23
|
filteredOptions: Observable<any[]>;
|
|
24
24
|
/**
|
|
25
25
|
* Reference to the column renderer types
|
|
@@ -127,7 +127,7 @@ export declare class EntityTableComponent implements OnInit, OnChanges, OnDestro
|
|
|
127
127
|
* @internal
|
|
128
128
|
*/
|
|
129
129
|
get fixedHeader(): boolean;
|
|
130
|
-
constructor(cdRef: ChangeDetectorRef, formBuilder:
|
|
130
|
+
constructor(cdRef: ChangeDetectorRef, formBuilder: FormBuilder, _focusMonitor: FocusMonitor, _elementRef: ElementRef<HTMLElement>, ngControl: NgControl, _parentForm: NgForm, _controlName: FormControlName, _defaultErrorStateMatcher: ErrorStateMatcher, dateAdapter: DateAdapter<Date>);
|
|
131
131
|
/**
|
|
132
132
|
* Track the selection state to properly display the selection checkboxes
|
|
133
133
|
* @internal
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import type {
|
|
2
|
+
import type { FormControl } from '@angular/forms';
|
|
3
3
|
import { BehaviorSubject } from 'rxjs';
|
|
4
4
|
import { FormFieldSelectChoice } from '../shared/form.interfaces';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -17,7 +17,7 @@ export declare class FormFieldSelectComponent implements OnInit {
|
|
|
17
17
|
/**
|
|
18
18
|
* The field's form control
|
|
19
19
|
*/
|
|
20
|
-
formControl:
|
|
20
|
+
formControl: FormControl;
|
|
21
21
|
/**
|
|
22
22
|
* Field placeholder
|
|
23
23
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import type {
|
|
2
|
+
import type { FormControl } from '@angular/forms';
|
|
3
3
|
import { BehaviorSubject } from 'rxjs';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
@@ -10,7 +10,7 @@ export declare class FormFieldTextComponent implements OnInit {
|
|
|
10
10
|
/**
|
|
11
11
|
* The field's form control
|
|
12
12
|
*/
|
|
13
|
-
formControl:
|
|
13
|
+
formControl: FormControl;
|
|
14
14
|
/**
|
|
15
15
|
* Field placeholder
|
|
16
16
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import type {
|
|
2
|
+
import type { FormControl } from '@angular/forms';
|
|
3
3
|
import { BehaviorSubject } from 'rxjs';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
@@ -10,7 +10,7 @@ export declare class FormFieldTextareaComponent implements OnInit {
|
|
|
10
10
|
/**
|
|
11
11
|
* The field's form control
|
|
12
12
|
*/
|
|
13
|
-
formControl:
|
|
13
|
+
formControl: FormControl;
|
|
14
14
|
/**
|
|
15
15
|
* Field placeholder
|
|
16
16
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
|
2
2
|
import { FormField, FormFieldGroup } from '../shared/form.interfaces';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
@@ -20,7 +20,7 @@ export declare class FormGroupComponent {
|
|
|
20
20
|
/**
|
|
21
21
|
* Form group control
|
|
22
22
|
*/
|
|
23
|
-
get formControl():
|
|
23
|
+
get formControl(): FormGroup;
|
|
24
24
|
constructor();
|
|
25
25
|
/**
|
|
26
26
|
* Return the number of columns a field should occupy.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FormControl, FormGroup, ValidatorFn } from '@angular/forms';
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
3
|
export interface Form {
|
|
4
4
|
fields: FormField[];
|
|
5
5
|
groups: FormFieldGroup[];
|
|
6
|
-
control:
|
|
6
|
+
control: FormGroup;
|
|
7
7
|
}
|
|
8
8
|
export interface FormFieldGroupConfig {
|
|
9
9
|
name: string;
|
|
@@ -12,7 +12,7 @@ export interface FormFieldGroupConfig {
|
|
|
12
12
|
}
|
|
13
13
|
export interface FormFieldGroup extends FormFieldGroupConfig {
|
|
14
14
|
fields: FormField[];
|
|
15
|
-
control:
|
|
15
|
+
control: FormGroup;
|
|
16
16
|
}
|
|
17
17
|
export interface FormFieldGroupOptions {
|
|
18
18
|
validator?: ValidatorFn;
|
|
@@ -34,7 +34,7 @@ export interface FormFieldConfig<T extends FormFieldInputs = FormFieldInputs> {
|
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
export interface FormField<T extends FormFieldInputs = FormFieldInputs> extends FormFieldConfig<T> {
|
|
37
|
-
control:
|
|
37
|
+
control: FormControl;
|
|
38
38
|
}
|
|
39
39
|
export interface FormFieldOptions {
|
|
40
40
|
validator?: ValidatorFn;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FormBuilder } from '@angular/forms';
|
|
2
2
|
import { Form, FormField, FormFieldConfig, FormFieldGroup, FormFieldGroupConfig } from './form.interfaces';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FormService {
|
|
5
5
|
private formBuilder;
|
|
6
|
-
constructor(formBuilder:
|
|
6
|
+
constructor(formBuilder: FormBuilder);
|
|
7
7
|
form(fields: FormField[], groups: FormFieldGroup[]): Form;
|
|
8
8
|
group(config: FormFieldGroupConfig, fields: FormField[]): FormFieldGroup;
|
|
9
9
|
field(config: FormFieldConfig): FormField;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@igo2/common",
|
|
3
|
-
"version": "1.13.0-alpha.
|
|
3
|
+
"version": "1.13.0-alpha.1",
|
|
4
4
|
"description": "IGO Library",
|
|
5
5
|
"author": "MSP",
|
|
6
6
|
"keywords": [
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"url": "https://github.com/infra-geo-ouverte/igo2-lib/issues"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@angular/common": "^
|
|
20
|
-
"@angular/core": "^
|
|
21
|
-
"@angular/material": "^
|
|
22
|
-
"@igo2/core": "^1.13.0-alpha.
|
|
23
|
-
"@igo2/utils": "^1.13.0-alpha.
|
|
19
|
+
"@angular/common": "^13.3.11",
|
|
20
|
+
"@angular/core": "^13.3.11",
|
|
21
|
+
"@angular/material": "^13.3.9",
|
|
22
|
+
"@igo2/core": "^1.13.0-alpha.1",
|
|
23
|
+
"@igo2/utils": "^1.13.0-alpha.1",
|
|
24
24
|
"scroll-into-view-if-needed": "^2.2.20",
|
|
25
25
|
"typy": "^3.3.0"
|
|
26
26
|
},
|