@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/bundles/sumaris-net.ngx-components.umd.js +160 -74
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/doc/changelog.md +14 -0
- package/esm2015/src/app/core/form/entity-editor.class.js +3 -2
- package/esm2015/src/app/core/services/model/entity.model.js +2 -2
- package/esm2015/src/app/core/services/storage/entities-storage.service.js +12 -12
- package/esm2015/src/app/core/services/storage/entity-store.class.js +3 -4
- package/esm2015/src/app/shared/functions.js +2 -2
- package/esm2015/src/app/shared/guard/component-dirty.guard.js +3 -3
- package/esm2015/src/app/shared/material/autocomplete/material.autocomplete.js +71 -51
- package/esm2015/src/app/shared/material/autocomplete/testing/autocomplete.test.js +5 -6
- package/esm2015/src/app/shared/pipes/form.pipes.js +62 -2
- package/esm2015/src/app/shared/pipes/pipes.module.js +4 -3
- package/fesm2015/sumaris-net.ngx-components.js +156 -77
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/services/storage/entities-storage.service.d.ts +6 -2
- package/src/app/core/services/storage/entity-store.class.d.ts +2 -2
- package/src/app/shared/pipes/form.pipes.d.ts +15 -0
- package/src/theme/_ngx-components.scss +14 -10
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
|
@@ -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(
|
|
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(
|
|
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.
|
|
81
|
+
* opts.skipIfPristine = false persist all entities, even if not dirty
|
|
82
82
|
*/
|
|
83
83
|
persist(opts?: {
|
|
84
|
-
skipIfPristine
|
|
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
|
-
|
|
348
|
-
|
|
347
|
+
mat-option.mat-select-searchbar,
|
|
348
|
+
mat-option.mat-autocomplete-searchbar
|
|
349
349
|
{
|
|
350
|
-
|
|
351
|
-
|
|
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
|
-
|
|
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
|
-
&.
|
|
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;
|