@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "1.23.0-rc4",
4
+ "version": "1.23.0",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -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 declare interface EntitiesTableServiceWatchOptions extends EntitiesServiceWatchOptions {
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
- dataServiceOptions?: WO;
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 EntitiesTableServiceWatchOptions = EntitiesTableServiceWatchOptions, V extends ValidatorService = ValidatorService, C extends EntitiesTableDataSourceConfig<T, ID, WO> = EntitiesTableDataSourceConfig<T, ID, WO>> extends TableDataSource<T, V, C> implements OnDestroy {
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
- get serviceOptions(): WO;
30
- set serviceOptions(value: WO);
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
  // --------------------------------------------------