@sumaris-net/ngx-components 1.18.2 → 1.18.5

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.
Files changed (25) hide show
  1. package/bundles/sumaris-net.ngx-components.umd.js +41 -30
  2. package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
  3. package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
  4. package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
  5. package/doc/changelog.md +7 -0
  6. package/esm2015/src/app/core/form/form.class.js +1 -1
  7. package/esm2015/src/app/core/table/table.class.js +1 -1
  8. package/esm2015/src/app/shared/form/field.component.js +4 -4
  9. package/esm2015/src/app/shared/functions.js +7 -1
  10. package/esm2015/src/app/shared/material/autocomplete/material.autocomplete.js +29 -26
  11. package/esm2015/src/app/shared/material/autocomplete/testing/autocomplete.test.js +2 -2
  12. package/esm2015/src/app/shared/material/datetime/material.date.js +3 -3
  13. package/esm2015/src/app/shared/material/datetime/material.dateshort.js +3 -3
  14. package/esm2015/src/app/shared/material/datetime/material.datetime.js +3 -3
  15. package/esm2015/src/app/shared/material/duration/material.duration.js +3 -3
  16. package/esm2015/src/app/shared/material/swipe/material.swipe.js +4 -3
  17. package/fesm2015/sumaris-net.ngx-components.js +41 -32
  18. package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
  19. package/package.json +1 -1
  20. package/src/app/core/form/form.class.d.ts +1 -1
  21. package/src/app/core/table/table.class.d.ts +1 -1
  22. package/src/app/shared/functions.d.ts +2 -0
  23. package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +2 -3
  24. package/src/theme/_ngx-components.scss +5 -5
  25. package/sumaris-net.ngx-components.metadata.json +1 -1
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.18.2",
4
+ "version": "1.18.5",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -124,6 +124,6 @@ export declare abstract class AppForm<T> implements IAppForm, OnInit, OnDestroy,
124
124
  protected getI18nFieldName(path: string): string;
125
125
  protected registerSubscription(sub: Subscription): Subscription;
126
126
  protected unregisterSubscription(sub: Subscription): void;
127
- protected registerAutocompleteField<T = any, F = any>(fieldName: string, opts?: MatAutocompleteFieldAddOptions<T, F>): MatAutocompleteFieldConfig<T, F>;
127
+ protected registerAutocompleteField<E = any, EF = any>(fieldName: string, opts?: MatAutocompleteFieldAddOptions<E, EF>): MatAutocompleteFieldConfig<E, EF>;
128
128
  protected markForCheck(): void;
129
129
  }
@@ -340,7 +340,7 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
340
340
  protected updateColumns(): void;
341
341
  protected registerSubscription(sub: Subscription): void;
342
342
  protected unregisterSubscription(sub: Subscription): void;
343
- protected registerAutocompleteField(fieldName: string, options?: MatAutocompleteFieldAddOptions): MatAutocompleteFieldConfig;
343
+ protected registerAutocompleteField<E = any, EF = any>(fieldName: string, options?: MatAutocompleteFieldAddOptions<E, EF>): MatAutocompleteFieldConfig<E, EF>;
344
344
  protected getI18nColumnName(columnName: string): string;
345
345
  protected generateTableId(): string;
346
346
  protected addRowToTable(insertAt?: number): Promise<TableElement<T>>;
@@ -9,7 +9,9 @@ export declare function isNilOrNaN<T>(obj: T | null | undefined): boolean;
9
9
  export declare function isNotEmptyArray<T>(obj: T[] | null | undefined): boolean;
10
10
  export declare function firstArrayValue<T>(obj: T[] | null | undefined): T | undefined;
11
11
  export declare function isEmptyArray<T>(obj: T[] | null | undefined): boolean;
12
+ export declare function isNotNilBoolean(obj: any | null | undefined): obj is boolean;
12
13
  export declare function isNotNilString(obj: any | null | undefined): obj is string;
14
+ export declare function isBlankString(obj: any | null | undefined): obj is string;
13
15
  export declare function notNilOrDefault<T>(obj: T | null | undefined, defaultValue: T): T;
14
16
  export declare function arraySize<T>(obj: T[] | null | undefined): number;
15
17
  export declare function arrayGroupBy<T = any, K extends keyof T = any, M extends {
@@ -134,8 +134,7 @@ export declare class MatAutocompleteField implements OnInit, OnDestroy, InputEle
134
134
  focus(): void;
135
135
  filterInputTextFocusEvent(event: FocusEvent): boolean;
136
136
  filterInputTextBlurEvent(event: FocusEvent): boolean;
137
- ionSearchBarChanged(event: CustomEvent<InputEvent>): void;
138
- ionSearchBarClear(event: UIEvent): void;
137
+ ionSearchBarChanged(event: CustomEvent<any>, value: string): void;
139
138
  filterMatSelectFocusEvent(event: FocusEvent): void;
140
139
  filterMatSelectBlurEvent(event: FocusEvent): boolean;
141
140
  clearValue(event: UIEvent): void;
@@ -150,5 +149,5 @@ export declare class MatAutocompleteField implements OnInit, OnDestroy, InputEle
150
149
  private getAutocompletePanel;
151
150
  private getMatSelectPanel;
152
151
  private markForCheck;
153
- private markAsLoading;
152
+ markAsLoading(): void;
154
153
  }
@@ -280,13 +280,13 @@ mat-option:not(:last-of-type) {
280
280
 
281
281
  .mat-select-panel {
282
282
  --min-width: 200px;
283
- --max-width: 100%;
283
+ --max-width: calc(min(100%, 100vw - 64px));
284
284
  min-width: var(--min-width) !important;
285
285
  max-width: var(--max-width) !important;
286
286
  }
287
287
  .mat-autocomplete-panel {
288
288
  --min-width: 250px;
289
- --max-width: 100%;
289
+ --max-width: calc(min(100%, 100vw - 64px));
290
290
  min-width: var(--min-width) !important;
291
291
  max-width: var(--max-width) !important;
292
292
  width: var(--max-width) !important;
@@ -316,10 +316,10 @@ mat-option:not(:last-of-type) {
316
316
 
317
317
  .mat-autocomplete-panel-full-size .mat-autocomplete-panel,
318
318
  .mat-autocomplete-panel-full-size.mat-autocomplete-panel {
319
- --min-width: calc(100vw - 5px);
320
- --max-width: calc(100vw - 5px);
319
+ --min-width: calc(100vw - 64px);
320
+ --max-width: calc(100vw - 64px);
321
321
  position: fixed;
322
- left: 0;
322
+ left: 32px;
323
323
  }
324
324
 
325
325
  .mat-select-panel,