@sumaris-net/ngx-components 1.23.0-rc4 → 1.23.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/bundles/sumaris-net.ngx-components.umd.js +43 -9
- 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/src/app/core/form/form-buttons-bar.component.js +2 -2
- package/esm2015/src/app/core/table/entities-table-datasource.class.js +22 -2
- package/esm2015/src/app/core/table/table.class.js +10 -6
- package/esm2015/src/app/core/table/testing/table.testing.js +3 -2
- package/fesm2015/sumaris-net.ngx-components.js +33 -8
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/table/entities-table-datasource.class.d.ts +20 -8
- package/src/app/core/table/table.class.d.ts +1 -0
- package/src/theme/_ngx-components.scss +11 -0
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
|
@@ -6,17 +6,19 @@ import { SortDirection } from '@angular/material/sort';
|
|
|
6
6
|
import { CollectionViewer } from '@angular/cdk/collections';
|
|
7
7
|
import { TableDataSourceConfig } from '@e-is/ngx-material-table/src/app/ngx-material-table/table-data-source';
|
|
8
8
|
import { EntitiesServiceWatchOptions, FetchMoreFn, IEntitiesService, LoadResult } from '../../shared/services/entity-service.class';
|
|
9
|
-
export
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
}
|
|
12
|
-
export interface EntitiesTableDataSourceConfig<T extends Entity<T, ID>, ID = number, WO extends EntitiesTableServiceWatchOptions = EntitiesTableServiceWatchOptions> extends TableDataSourceConfig {
|
|
9
|
+
export interface EntitiesTableDataSourceConfig<T extends Entity<T, ID>, ID = number, WO extends EntitiesServiceWatchOptions = EntitiesServiceWatchOptions, SO = any> extends TableDataSourceConfig {
|
|
13
10
|
onRowCreated?: (row: TableElement<T>) => Promise<void> | void;
|
|
14
11
|
saveOnlyDirtyRows?: boolean;
|
|
15
12
|
readOnly?: boolean;
|
|
16
|
-
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated
|
|
15
|
+
*/
|
|
16
|
+
dataServiceOptions?: WO & SO;
|
|
17
|
+
watchAllOptions?: WO;
|
|
18
|
+
saveAllOptions?: SO;
|
|
17
19
|
[key: string]: any;
|
|
18
20
|
}
|
|
19
|
-
export declare class EntitiesTableDataSource<T extends IEntity<T, ID>, F = any, ID = number, WO extends
|
|
21
|
+
export declare class EntitiesTableDataSource<T extends IEntity<T, ID>, F = any, ID = number, WO extends EntitiesServiceWatchOptions = EntitiesServiceWatchOptions, SO = any, V extends ValidatorService = ValidatorService, C extends EntitiesTableDataSourceConfig<T, ID, WO, SO> = EntitiesTableDataSourceConfig<T, ID, WO, SO>> extends TableDataSource<T, V, C> implements OnDestroy {
|
|
20
22
|
readonly dataService: IEntitiesService<T, F, WO>;
|
|
21
23
|
private readonly _entityName;
|
|
22
24
|
protected _debug: boolean;
|
|
@@ -26,8 +28,18 @@ export declare class EntitiesTableDataSource<T extends IEntity<T, ID>, F = any,
|
|
|
26
28
|
protected _editingRowCount: number;
|
|
27
29
|
protected _fetchMoreFn: FetchMoreFn<LoadResult<T>>;
|
|
28
30
|
loadingSubject: BehaviorSubject<boolean>;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated Use watchAllOptions or saveAllOptions
|
|
33
|
+
*/
|
|
34
|
+
get serviceOptions(): WO & SO;
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated Use watchAllOptions or saveAllOptions
|
|
37
|
+
*/
|
|
38
|
+
set serviceOptions(value: WO & SO);
|
|
39
|
+
get watchAllOptions(): WO;
|
|
40
|
+
set watchAllOptions(value: WO);
|
|
41
|
+
get saveAllOptions(): SO;
|
|
42
|
+
set saveAllOptions(value: SO);
|
|
31
43
|
get loaded(): boolean;
|
|
32
44
|
get loading(): boolean;
|
|
33
45
|
/**
|
|
@@ -352,6 +352,7 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
352
352
|
protected addRowToTable(insertAt?: number, opts?: {
|
|
353
353
|
focusColumn?: string;
|
|
354
354
|
editing?: boolean;
|
|
355
|
+
emitEvent?: boolean;
|
|
355
356
|
}): Promise<TableElement<T>>;
|
|
356
357
|
protected registerCellValueChanges(name: string, formPath?: string, emitInitialValue?: boolean): Observable<any>;
|
|
357
358
|
protected setShowColumn(columnName: string, show: boolean, opts?: {
|
|
@@ -501,6 +501,17 @@ mat-checkbox {
|
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
|
|
504
|
+
// --------------------------------------------------
|
|
505
|
+
// Form buttons bar
|
|
506
|
+
// --------------------------------------------------
|
|
507
|
+
app-form-buttons-bar {
|
|
508
|
+
--form-buttons-bar-buttons-width: 400px;
|
|
509
|
+
--form-buttons-bar-content-max-width: calc(100% - var(--form-buttons-bar-buttons-width) - 40px /*right menu toggle button*/);
|
|
510
|
+
.app-form-buttons-bar-content {
|
|
511
|
+
max-width: var(--form-buttons-bar-content-max-width);
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
|
|
504
515
|
// --------------------------------------------------
|
|
505
516
|
// Ion-select
|
|
506
517
|
// --------------------------------------------------
|