@sumaris-net/ngx-components 0.25.15 → 0.25.19
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/bundles/sumaris-net.ngx-components.umd.js +49 -27
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/public_api.js +2 -1
- package/esm2015/src/app/core/form/entity-editor.class.js +5 -2
- package/esm2015/src/app/core/services/model/entity.model.js +1 -1
- package/esm2015/src/app/core/table/entities-table-datasource.class.js +5 -7
- package/esm2015/src/app/core/table/table.class.js +22 -16
- package/esm2015/src/app/shared/material/autocomplete/testing/autocomplete.test.js +2 -2
- package/fesm2015/sumaris-net.ngx-components.js +30 -23
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
- package/src/app/core/form/entity-editor.class.d.ts +1 -0
- package/src/app/core/services/model/entity.model.d.ts +2 -2
- package/src/app/core/table/table.class.d.ts +1 -0
- package/src/theme/_ngx-components.scss +6 -0
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -80,6 +80,7 @@ export * from './src/app/shared/graph/colors.utils';
|
|
|
80
80
|
export * from './src/app/shared/gesture/gesture-config';
|
|
81
81
|
export * from './src/app/shared/gesture/hammer.utils';
|
|
82
82
|
export * from './src/app/shared/validator/validators';
|
|
83
|
+
export * from './src/app/shared/validator/form-error-adapter.class';
|
|
83
84
|
export * from './src/app/shared/material/latlong/latlong.utils';
|
|
84
85
|
export * from './src/app/shared/shared.testing.module';
|
|
85
86
|
export * from './src/app/shared/material/testing/material.testing.module';
|
|
@@ -122,6 +122,7 @@ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends
|
|
|
122
122
|
protected abstract get form(): FormGroup;
|
|
123
123
|
protected abstract getFirstInvalidTabIndex(): number;
|
|
124
124
|
protected abstract canUserWrite(data: T): boolean;
|
|
125
|
+
protected computeNextTabIndex(): number | undefined;
|
|
125
126
|
unload(): Promise<void>;
|
|
126
127
|
protected onBeforeEntityLoad(): Promise<void>;
|
|
127
128
|
protected onNewEntity(data: T, options?: EntityServiceLoadOptions): Promise<void>;
|
|
@@ -45,8 +45,8 @@ export declare abstract class Entity<T extends Entity<T, ID, AO, FO>, ID = numbe
|
|
|
45
45
|
*/
|
|
46
46
|
export declare function isInstanceOf<T>(obj: any, constructor: new (...args: any[]) => T): obj is T;
|
|
47
47
|
export declare abstract class EntityUtils {
|
|
48
|
-
static isNotEmpty<T extends IEntity<any> | any>(obj:
|
|
49
|
-
static isEmpty
|
|
48
|
+
static isNotEmpty<T extends IEntity<any> | any>(obj: T, checkedAttribute: keyof T): boolean;
|
|
49
|
+
static isEmpty<T extends IEntity<any> | any>(obj: T, checkedAttribute: keyof T): boolean;
|
|
50
50
|
static equals<T extends IEntity<any> | any>(o1: T, o2: T, checkAttribute?: keyof T): boolean;
|
|
51
51
|
static getPropertyByPath(obj: any | IEntity<any>, path: string): any;
|
|
52
52
|
static getArrayAsMap<T = any>(source?: ObjectMapEntry<T>[]): ObjectMap<T>;
|
|
@@ -286,6 +286,7 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
286
286
|
selectRowByData(data: T): Promise<boolean>;
|
|
287
287
|
clickRow(event: UIEvent | undefined, row: TableElement<T>): boolean;
|
|
288
288
|
moveRow(id: number, direction: number): void;
|
|
289
|
+
waitIdle(): Promise<any>;
|
|
289
290
|
openSelectColumnsModal(event?: Event): Promise<any>;
|
|
290
291
|
trackByFn(index: number, row: TableElement<T>): number;
|
|
291
292
|
doRefresh(event?: CompletableEvent): void;
|
|
@@ -142,6 +142,12 @@ form.form-container {
|
|
|
142
142
|
color: $app-form-color-disabled !important;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
+
.mat-form-field-disabled {
|
|
146
|
+
.mat-form-field-infix{
|
|
147
|
+
min-height: 41px;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
145
151
|
mat-form-field,
|
|
146
152
|
mat-autocomplete-field,
|
|
147
153
|
app-form-field {
|