@sumaris-net/ngx-components 2.4.48 → 2.4.50
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/doc/changelog.md +6 -0
- package/esm2020/public_api.mjs +2 -1
- package/esm2020/src/app/core/table/async-table.class.mjs +7 -3
- package/esm2020/src/app/core/table/table.class.mjs +13 -5
- package/esm2020/src/app/core/table/testing/table-validator.service.mjs +27 -0
- package/esm2020/src/app/core/table/testing/table.testing.mjs +26 -11
- package/esm2020/src/app/shared/form/field.component.mjs +31 -9
- package/esm2020/src/app/shared/form/field.model.mjs +1 -1
- package/fesm2015/sumaris-net.ngx-components.mjs +89 -16
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +87 -18
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
- package/src/app/core/table/testing/table-validator.service.d.ts +17 -0
- package/src/app/core/table/testing/table.testing.d.ts +2 -0
- package/src/app/shared/form/field.component.d.ts +1 -1
- package/src/app/shared/form/field.model.d.ts +1 -1
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -269,3 +269,4 @@ export * from './src/app/social/job/testing/job-progression.testing.service';
|
|
|
269
269
|
export { MatAutocompleteConfigHolder } from './src/app/shared/material/autocomplete/material.autocomplete.config';
|
|
270
270
|
export { MatAutocompleteFieldAddOptions } from './src/app/shared/material/autocomplete/material.autocomplete.config';
|
|
271
271
|
export { MatAutocompleteFieldConfig } from './src/app/shared/material/autocomplete/material.autocomplete.config';
|
|
272
|
+
export { TableValidatorService } from "./src/app/core/table/testing/table-validator.service";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReferentialValidatorService } from '../../services/testing/referential.validator';
|
|
2
|
+
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { Referential } from '../../services/model/referential.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TableValidatorService extends ReferentialValidatorService {
|
|
6
|
+
protected formBuilder: UntypedFormBuilder;
|
|
7
|
+
constructor(formBuilder: UntypedFormBuilder);
|
|
8
|
+
getFormGroup(data?: Referential, opts?: {
|
|
9
|
+
withDescription?: boolean;
|
|
10
|
+
withComments?: boolean;
|
|
11
|
+
}): UntypedFormGroup;
|
|
12
|
+
getPropertiesForm(data: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}, opts?: any): UntypedFormGroup;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableValidatorService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TableValidatorService>;
|
|
17
|
+
}
|
|
@@ -8,6 +8,7 @@ import { AbstractControl, UntypedFormBuilder, UntypedFormGroup } from '@angular/
|
|
|
8
8
|
import { ReferentialFilter } from '../../services/testing/referential-filter.model';
|
|
9
9
|
import { MatExpansionPanel } from '@angular/material/expansion';
|
|
10
10
|
import { Subscription } from 'rxjs';
|
|
11
|
+
import { FormFieldDefinitionMap } from '../../../shared/form/field.model';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
export declare class TableTestPage extends AppTable<Referential, ReferentialFilter> implements OnInit, OnDestroy {
|
|
13
14
|
protected validatorService: AppValidatorService;
|
|
@@ -22,6 +23,7 @@ export declare class TableTestPage extends AppTable<Referential, ReferentialFilt
|
|
|
22
23
|
groupColumns: string[];
|
|
23
24
|
readonly statusList: readonly import("../../services/model/referential.model").IStatus[];
|
|
24
25
|
readonly statusById: Readonly<import("@sumaris-net/ngx-components").KeyValueType<import("../../services/model/referential.model").IStatus>>;
|
|
26
|
+
readonly columnDefinitions: FormFieldDefinitionMap;
|
|
25
27
|
enableInfiniteScroll: boolean;
|
|
26
28
|
useSticky: boolean;
|
|
27
29
|
get hasMoreData(): boolean;
|
|
@@ -67,5 +67,5 @@ export declare class AppFormField implements OnInit, ControlValueAccessor {
|
|
|
67
67
|
}): void;
|
|
68
68
|
protected updateTabIndex(timeout?: number): void;
|
|
69
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppFormField, [null, null, null, { optional: true; }]>;
|
|
70
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AppFormField, "app-form-field", never, { "definition": "definition"; "required": "required"; "readonly": "readonly"; "disabled": "disabled"; "formControl": "formControl"; "formControlName": "formControlName"; "placeholder": "placeholder"; "compact": "compact"; "floatLabel": "floatLabel"; "tabindex": "tabindex"; "autofocus": "autofocus"; "clearable": "clearable"; "chipColor": "chipColor"; "debug": "debug"; "classList": "class"; }, { "onKeyupEnter": "keyup.enter"; }, never, ["[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matSuffix]"], false>;
|
|
70
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppFormField, "app-form-field", never, { "definition": "definition"; "required": "required"; "readonly": "readonly"; "disabled": "disabled"; "formControl": "formControl"; "formControlName": "formControlName"; "placeholder": "placeholder"; "compact": "compact"; "floatLabel": "floatLabel"; "tabindex": "tabindex"; "autofocus": "autofocus"; "clearable": "clearable"; "chipColor": "chipColor"; "debug": "debug"; "classList": "class"; }, { "onKeyupEnter": "keyup.enter"; }, never, ["[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matSuffix]"], false>;
|
|
71
71
|
}
|
|
@@ -4,7 +4,7 @@ import { MatAutocompleteFieldConfig } from '../material/autocomplete/material.au
|
|
|
4
4
|
export declare type DisplayFn = (obj: any) => string;
|
|
5
5
|
export declare type EqualsFn = (o1: any, o2: any) => boolean;
|
|
6
6
|
export declare type CompareFn = (o1: any, o2: any) => number;
|
|
7
|
-
export declare type FormFieldType = 'integer' | 'double' | 'boolean' | 'string' | 'enum' | 'color' | 'peer' | 'entity' | 'entities' | 'date' | 'dateTime';
|
|
7
|
+
export declare type FormFieldType = 'integer' | 'double' | 'boolean' | 'string' | 'enum' | 'enums' | 'color' | 'peer' | 'entity' | 'entities' | 'date' | 'dateTime';
|
|
8
8
|
export declare interface FormFieldDefinition<K = string, T = FormFieldType, E = any> {
|
|
9
9
|
key: K;
|
|
10
10
|
type: T;
|