@sumaris-net/ngx-components 0.26.2 → 0.26.6
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 +136 -24
- 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 +1 -0
- package/esm2015/src/app/core/form/entity-editor.class.js +4 -5
- package/esm2015/src/app/core/form/form-buttons-bar.component.js +2 -1
- package/esm2015/src/app/core/form/form.class.js +3 -3
- package/esm2015/src/app/core/table/table.class.js +3 -3
- package/esm2015/src/app/shared/help/help.modal.js +1 -1
- package/esm2015/src/app/shared/material/autocomplete/material.autocomplete.js +4 -2
- package/esm2015/src/app/shared/material/badge/badge-icon.directive.js +62 -0
- package/esm2015/src/app/shared/material/badge/badge-icon.module.js +23 -0
- package/esm2015/src/app/shared/material/badge/badge-icon.test.js +10 -0
- package/esm2015/src/app/shared/material/material.module.js +4 -2
- package/esm2015/src/app/shared/material/testing/material.testing.module.js +9 -2
- package/esm2015/src/app/shared/material/testing/material.testing.page.js +2 -2
- package/esm2015/src/app/shared/pipes/form.pipes.js +3 -3
- package/esm2015/src/app/shared/toolbar/modal-toolbar.js +6 -1
- package/esm2015/src/app/shared/validator/form-error-adapter.class.js +5 -5
- package/esm2015/sumaris-net.ngx-components.js +10 -7
- package/fesm2015/sumaris-net.ngx-components.js +115 -13
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/entity-editor.class.d.ts +2 -2
- package/src/app/core/form/form.class.d.ts +2 -2
- package/src/app/core/table/table.class.d.ts +2 -2
- package/src/app/shared/help/help.modal.d.ts +7 -1
- package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +1 -0
- package/src/app/shared/material/badge/badge-icon.directive.d.ts +15 -0
- package/src/app/shared/material/badge/badge-icon.module.d.ts +2 -0
- package/src/app/shared/material/badge/badge-icon.test.d.ts +2 -0
- package/src/app/shared/pipes/form.pipes.d.ts +2 -2
- package/src/app/shared/validator/form-error-adapter.class.d.ts +1 -1
- package/sumaris-net.ngx-components.d.ts +9 -6
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ import { EntityServiceLoadOptions, IEntityService } from '../../shared/services/
|
|
|
9
9
|
import { DateFormatPipe } from '../../shared/pipes/date-format.pipe';
|
|
10
10
|
import { HistoryPageReference } from '../services/model/history.model';
|
|
11
11
|
import { WaitForOptions } from '../../shared/observables';
|
|
12
|
-
import {
|
|
12
|
+
import { FormErrorTranslator } from '../../shared/validator/form-error-adapter.class';
|
|
13
13
|
export declare class AppEditorOptions extends AppTabEditorOptions {
|
|
14
14
|
autoLoad?: boolean;
|
|
15
15
|
autoLoadDelay?: number;
|
|
@@ -38,7 +38,7 @@ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends
|
|
|
38
38
|
protected dateFormat: DateFormatPipe;
|
|
39
39
|
protected cd: ChangeDetectorRef;
|
|
40
40
|
protected settings: LocalSettingsService;
|
|
41
|
-
protected formErrorAdapter:
|
|
41
|
+
protected formErrorAdapter: FormErrorTranslator;
|
|
42
42
|
data: T;
|
|
43
43
|
saving: boolean;
|
|
44
44
|
hasRemoteListener: boolean;
|
|
@@ -5,7 +5,7 @@ import { IAppForm } from './form.utils';
|
|
|
5
5
|
import { LocalSettingsService } from '../services/local-settings.service';
|
|
6
6
|
import { MatAutocompleteConfigHolder, MatAutocompleteFieldAddOptions, MatAutocompleteFieldConfig } from '../../shared/material/autocomplete/material.autocomplete';
|
|
7
7
|
import { WaitForOptions } from '../../shared/observables';
|
|
8
|
-
import {
|
|
8
|
+
import { FormErrorTranslator, FormErrorTranslatorOptions, IFormControlPathTranslator } from '../../shared/validator/form-error-adapter.class';
|
|
9
9
|
export declare abstract class AppForm<T> implements IAppForm, OnInit, OnDestroy, IFormControlPathTranslator {
|
|
10
10
|
autocompleteHelper: MatAutocompleteConfigHolder;
|
|
11
11
|
autocompleteFields: {
|
|
@@ -13,7 +13,7 @@ export declare abstract class AppForm<T> implements IAppForm, OnInit, OnDestroy,
|
|
|
13
13
|
};
|
|
14
14
|
error: string;
|
|
15
15
|
protected settings: LocalSettingsService;
|
|
16
|
-
protected errorTranslator:
|
|
16
|
+
protected errorTranslator: FormErrorTranslator;
|
|
17
17
|
protected _enable: boolean;
|
|
18
18
|
protected _loading: boolean;
|
|
19
19
|
protected i18nFieldPrefix: string;
|
|
@@ -20,7 +20,7 @@ import { CompletableEvent } from '../../shared/events';
|
|
|
20
20
|
import { ShowToastOptions } from '../../shared/toasts';
|
|
21
21
|
import { CdkColumnDef } from '@angular/cdk/table';
|
|
22
22
|
import { LoadResult } from '../../shared/services/entity-service.class';
|
|
23
|
-
import {
|
|
23
|
+
import { FormErrorTranslator, FormErrorTranslatorOptions, IFormControlPathTranslator } from '../../shared/validator/form-error-adapter.class';
|
|
24
24
|
export declare const SETTINGS_DISPLAY_COLUMNS = "displayColumns";
|
|
25
25
|
export declare const SETTINGS_SORTED_COLUMN = "sortedColumn";
|
|
26
26
|
export declare const SETTINGS_FILTER = "filter";
|
|
@@ -65,7 +65,7 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
65
65
|
protected alertCtrl: AlertController;
|
|
66
66
|
protected toastController: ToastController;
|
|
67
67
|
protected previouslyEditedRowId: number;
|
|
68
|
-
protected formErrorAdapter:
|
|
68
|
+
protected formErrorAdapter: FormErrorTranslator;
|
|
69
69
|
excludesColumns: string[];
|
|
70
70
|
displayedColumns: string[];
|
|
71
71
|
totalRowCount: number | null;
|
|
@@ -3,7 +3,13 @@ import { ModalController } from '@ionic/angular';
|
|
|
3
3
|
import { PlatformService } from '../../core/services/platform.service';
|
|
4
4
|
import { LocalSettingsService } from '../../core/services/local-settings.service';
|
|
5
5
|
import { TranslateService } from '@ngx-translate/core';
|
|
6
|
-
export
|
|
6
|
+
export interface AppHelpModalOptions {
|
|
7
|
+
title?: string;
|
|
8
|
+
markdownContent?: string;
|
|
9
|
+
docUrl?: string;
|
|
10
|
+
showError?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare class AppHelpModal implements AppHelpModalOptions {
|
|
7
13
|
protected injector: Injector;
|
|
8
14
|
protected viewCtrl: ModalController;
|
|
9
15
|
protected platform: PlatformService;
|
|
@@ -107,6 +107,7 @@ export declare class MatAutocompleteField implements OnInit, InputElement, OnDes
|
|
|
107
107
|
onDropButtonClick: EventEmitter<UIEvent>;
|
|
108
108
|
onKeydownEscape: EventEmitter<any>;
|
|
109
109
|
onKeyupEnter: EventEmitter<any>;
|
|
110
|
+
onKeydownTab: EventEmitter<any>;
|
|
110
111
|
matSelect: MatSelect;
|
|
111
112
|
matInputText: ElementRef;
|
|
112
113
|
matAutocomplete: MatAutocomplete;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { MatBadgeSize } from '@angular/material/badge';
|
|
3
|
+
import { PredefinedColors } from '@ionic/core';
|
|
4
|
+
import { ThemePalette } from '@angular/material/core';
|
|
5
|
+
export declare type MatBadgeFill = 'clear' | 'solid';
|
|
6
|
+
export declare class MatBadgeIconDirective implements OnInit {
|
|
7
|
+
private el;
|
|
8
|
+
size: MatBadgeSize;
|
|
9
|
+
color: PredefinedColors | ThemePalette;
|
|
10
|
+
fill: MatBadgeFill;
|
|
11
|
+
matIcon: string;
|
|
12
|
+
ionIcon: string;
|
|
13
|
+
constructor(el: ElementRef);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import {
|
|
3
|
+
import { FormErrorTranslator, FormErrorTranslatorOptions } from '../validator/form-error-adapter.class';
|
|
4
4
|
export declare class FormErrorTranslatePipe implements PipeTransform {
|
|
5
5
|
private adapter;
|
|
6
|
-
constructor(adapter:
|
|
6
|
+
constructor(adapter: FormErrorTranslator);
|
|
7
7
|
transform(form: FormGroup, opts?: FormErrorTranslatorOptions): string;
|
|
8
8
|
}
|
|
@@ -12,7 +12,7 @@ export interface FormErrorTranslatorOptions {
|
|
|
12
12
|
separator?: string;
|
|
13
13
|
recursive?: boolean;
|
|
14
14
|
}
|
|
15
|
-
export declare class
|
|
15
|
+
export declare class FormErrorTranslator implements IFormControlPathTranslator {
|
|
16
16
|
private translate;
|
|
17
17
|
private readonly errorI18nKeys;
|
|
18
18
|
constructor(translate: TranslateService, errorI18nKeys: ObjectMap<string>);
|
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
4
|
export * from './public_api';
|
|
5
|
-
export { RegisterForm as
|
|
6
|
-
export { RegisterModal as
|
|
7
|
-
export { AccountValidatorService as
|
|
8
|
-
export { LocalSettingsValidatorService as
|
|
9
|
-
export { UserSettingsValidatorService as
|
|
10
|
-
export { isFocusableElement as
|
|
5
|
+
export { RegisterForm as ɵg } from './src/app/core/register/form/form-register';
|
|
6
|
+
export { RegisterModal as ɵi } from './src/app/core/register/modal/modal-register';
|
|
7
|
+
export { AccountValidatorService as ɵh } from './src/app/core/services/validator/account.validator';
|
|
8
|
+
export { LocalSettingsValidatorService as ɵk } from './src/app/core/services/validator/local-settings.validator';
|
|
9
|
+
export { UserSettingsValidatorService as ɵj } from './src/app/core/services/validator/user-settings.validator';
|
|
10
|
+
export { isFocusableElement as ɵe } from './src/app/shared/focusable';
|
|
11
|
+
export { MatBadgeIconDirective as ɵd } from './src/app/shared/material/badge/badge-icon.directive';
|
|
12
|
+
export { SharedMatBadgeIconModule as ɵc } from './src/app/shared/material/badge/badge-icon.module';
|
|
13
|
+
export { MatBadgeIconTestPage as ɵf } from './src/app/shared/material/badge/badge-icon.test';
|
|
11
14
|
export { MatNumpadDomService as ɵb } from './src/app/shared/material/numpad/numpad.dom-service';
|
|
12
15
|
export { CustomReuseStrategy as ɵa } from './src/app/shared/shared-routing.module';
|