@sumaris-net/ngx-components 1.19.5 → 1.19.7

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.19.5",
4
+ "version": "1.19.7",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -88,7 +88,9 @@ export declare class EntitiesStorage extends StartableService<EntityStorageMap>
88
88
  emitEvent?: boolean;
89
89
  }): Promise<T>;
90
90
  clearTrash(entityName: string): Promise<void>;
91
- persist(): Promise<void>;
91
+ persist(opts?: {
92
+ skipIfPristine: boolean;
93
+ }): Promise<void>;
92
94
  ngOnStart(): Promise<EntityStorageMap>;
93
95
  protected ngOnStop(): Promise<void>;
94
96
  protected getEntityStore<T extends IEntity<T, ID>, ID = number>(name: string, opts?: {
@@ -96,6 +98,8 @@ export declare class EntitiesStorage extends StartableService<EntityStorageMap>
96
98
  }): EntityStore<T, ID>;
97
99
  protected detectEntityName(entityOrName: string | Entity<any, any>): string;
98
100
  protected restoreLocally(): Promise<void>;
99
- protected storeLocally(): Promise<any>;
101
+ protected storeLocally(opts?: {
102
+ skipIfPristine: boolean;
103
+ }): Promise<any>;
100
104
  }
101
105
  export {};
@@ -78,10 +78,10 @@ export declare class EntityStore<T extends IEntity<T, ID>, ID = number, O extend
78
78
  /**
79
79
  *
80
80
  * @param opts
81
- * opts.force : force all entities to be persist, and not only if dirty
81
+ * opts.skipIfPristine = false persist all entities, even if not dirty
82
82
  */
83
83
  persist(opts?: {
84
- skipIfPristine?: boolean;
84
+ skipIfPristine: boolean;
85
85
  }): Promise<number>;
86
86
  restore(opts?: {
87
87
  emitEvent?: boolean;
@@ -29,3 +29,18 @@ export declare class FormGetArrayPipe implements PipeTransform {
29
29
  export declare class FormGetGroupPipe implements PipeTransform {
30
30
  transform(form: AbstractControl, path: Array<string | number> | string): FormGroup;
31
31
  }
32
+ export declare class FormGetValuePipe implements PipeTransform {
33
+ private adapter;
34
+ private _ref;
35
+ value: any;
36
+ private _lastControl;
37
+ private _lastPath;
38
+ private _onControlValueChanges;
39
+ constructor(adapter: FormErrorTranslator, _ref: ChangeDetectorRef);
40
+ transform(form: AbstractControl, path?: Array<string | number> | string): any;
41
+ ngOnDestroy(): void;
42
+ /**
43
+ * Clean any existing subscription to change events
44
+ */
45
+ private _dispose;
46
+ }
@@ -344,17 +344,20 @@ mat-option:not(:last-of-type) {
344
344
  }
345
345
  }
346
346
 
347
- ion-searchbar.mat-select-header,
348
- ion-searchbar.mat-autocomplete-header
347
+ mat-option.mat-select-searchbar,
348
+ mat-option.mat-autocomplete-searchbar
349
349
  {
350
- visibility: hidden;
351
- display: none;
352
- opacity: 0;
353
-
354
- height: 58px;
350
+ padding: 0 !important;
351
+ height: 58px !important;
355
352
  background-color: var(--ion-color-secondary100) !important;
356
353
 
357
- &.ion-searchbar-sticky {
354
+ /* hide pseudo checkbox, in the searchbar*/
355
+ mat-pseudo-checkbox {
356
+ visibility: hidden;
357
+ display: none;
358
+ }
359
+
360
+ &.mat-select-searchbar-sticky {
358
361
  z-index: 1001;
359
362
  /* Set header as sticky*/
360
363
  position: -webkit-sticky;
@@ -387,7 +390,7 @@ mat-option:not(:last-of-type) {
387
390
  white-space: nowrap;
388
391
  text-overflow: ellipsis;
389
392
  }
390
- &.ion-searchbar-sticky {
393
+ &.mat-select-searchbar-sticky {
391
394
  /* offset because of the searchbar height */
392
395
  top: 58px;
393
396
  }
@@ -397,7 +400,8 @@ mat-option:not(:last-of-type) {
397
400
 
398
401
  ion-row.mat-select-footer,
399
402
  ion-row.mat-menu-footer,
400
- ion-row.mat-autocomplete-footer {
403
+ ion-row.mat-autocomplete-footer,
404
+ mat-option.mat-autocomplete-footer {
401
405
  /* Set footer as sticky*/
402
406
  position: -webkit-sticky;
403
407
  position: sticky;