@sumaris-net/ngx-components 18.6.10-beta1 → 18.6.11-alpha1
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/esm2022/public_api.mjs +2 -1
- package/esm2022/src/app/admin/services/validator/person.validator.mjs +1 -1
- package/esm2022/src/app/core/account/account.page.mjs +20 -32
- package/esm2022/src/app/core/form/properties/properties.table.mjs +32 -28
- package/esm2022/src/app/core/form/properties/properties.utils.mjs +1 -14
- package/esm2022/src/app/core/home/home.mjs +4 -1
- package/esm2022/src/app/core/services/account.service.mjs +7 -22
- package/esm2022/src/app/core/services/local-settings.service.mjs +2 -9
- package/esm2022/src/app/core/services/model/account.model.mjs +13 -32
- package/esm2022/src/app/core/services/model/entity.model.mjs +1 -1
- package/esm2022/src/app/core/services/platform.service.mjs +3 -4
- package/esm2022/src/app/core/services/validator/base.validator.class.mjs +3 -3
- package/esm2022/src/app/core/table/entities-async-table-datasource.class.mjs +1 -1
- package/esm2022/src/app/core/table/entities-table-datasource.class.mjs +1 -1
- package/esm2022/src/app/shared/markdown/markdown.component.mjs +55 -81
- package/esm2022/src/app/shared/markdown/markdown.modal.mjs +17 -10
- package/esm2022/src/app/shared/markdown/markdown.utils.mjs +8 -1
- package/esm2022/src/app/shared/markdown/testing/markdown.test.mjs +16 -7
- package/esm2022/src/app/shared/named-filter/named-filter-selector.component.mjs +1 -1
- package/esm2022/src/app/shared/named-filter/named-filter.model.mjs +1 -1
- package/esm2022/src/app/shared/print/print.service.mjs +257 -0
- package/esm2022/src/app/shared/toolbar/modal-toolbar.mjs +3 -3
- package/esm2022/src/app/social/user-event/user-event.model.mjs +1 -1
- package/fesm2022/sumaris-net.ngx-components.mjs +409 -226
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
- package/src/app/admin/services/validator/person.validator.d.ts +1 -1
- package/src/app/core/account/account.page.d.ts +0 -2
- package/src/app/core/form/properties/properties.table.d.ts +10 -4
- package/src/app/core/form/properties/properties.utils.d.ts +0 -4
- package/src/app/core/services/account.service.d.ts +0 -2
- package/src/app/core/services/local-settings.service.d.ts +0 -1
- package/src/app/core/services/model/account.model.d.ts +2 -17
- package/src/app/core/services/model/entity.model.d.ts +2 -2
- package/src/app/core/services/validator/base.validator.class.d.ts +5 -5
- package/src/app/core/table/entities-async-table-datasource.class.d.ts +2 -2
- package/src/app/core/table/entities-table-datasource.class.d.ts +2 -2
- package/src/app/shared/markdown/markdown.component.d.ts +12 -7
- package/src/app/shared/markdown/markdown.modal.d.ts +9 -2
- package/src/app/shared/markdown/markdown.utils.d.ts +1 -0
- package/src/app/shared/markdown/testing/markdown.test.d.ts +4 -1
- package/src/app/shared/named-filter/named-filter-selector.component.d.ts +1 -3
- package/src/app/shared/named-filter/named-filter.model.d.ts +2 -2
- package/src/app/shared/print/print.service.d.ts +60 -0
- package/src/app/social/user-event/user-event.model.d.ts +2 -2
- package/src/assets/i18n/en-US.json +3 -2
- package/src/assets/i18n/en.json +2 -1
- package/src/assets/i18n/fr.json +2 -1
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -147,6 +147,7 @@ export * from './src/app/shared/markdown/markdown.service';
|
|
|
147
147
|
export * from './src/app/shared/markdown/markdown.directive';
|
|
148
148
|
export * from './src/app/shared/markdown/markdown.component';
|
|
149
149
|
export * from './src/app/shared/markdown/markdown.modal';
|
|
150
|
+
export * from './src/app/shared/print/print.service';
|
|
150
151
|
export * from './src/app/core/core.module';
|
|
151
152
|
export * from './src/app/core/services/model/account.model';
|
|
152
153
|
export * from './src/app/core/services/model/token.model';
|
|
@@ -10,7 +10,7 @@ export interface PersonValidatorOptions {
|
|
|
10
10
|
withUsername?: boolean;
|
|
11
11
|
withUsernameExtranet?: boolean;
|
|
12
12
|
}
|
|
13
|
-
export declare class PersonValidatorService<T extends Person = Person, O extends PersonValidatorOptions = PersonValidatorOptions> extends AppValidatorService<T
|
|
13
|
+
export declare class PersonValidatorService<T extends Person = Person, O extends PersonValidatorOptions = PersonValidatorOptions> extends AppValidatorService<T> {
|
|
14
14
|
protected accountService: AccountService;
|
|
15
15
|
constructor(formBuilder: UntypedFormBuilder, translate: TranslateService, accountService: AccountService);
|
|
16
16
|
getFormGroupConfig(data?: T, opts?: O): {
|
|
@@ -47,8 +47,6 @@ export declare class AccountPage extends AppForm<Account> implements OnInit, OnD
|
|
|
47
47
|
protected accountReadOnly: boolean;
|
|
48
48
|
protected readonly mobile: boolean;
|
|
49
49
|
get valid(): boolean;
|
|
50
|
-
get invalid(): boolean;
|
|
51
|
-
get dirty(): boolean;
|
|
52
50
|
protected showLatLonFormat: boolean;
|
|
53
51
|
protected canChangePassword: boolean;
|
|
54
52
|
protected showSecurityDetails: boolean;
|
|
@@ -7,14 +7,16 @@ import { FormFieldDefinition, FormFieldDefinitionMap } from '../../../shared/for
|
|
|
7
7
|
import { Environment } from '../../../../environments/environment.class';
|
|
8
8
|
import { TableElement } from '@e-is/ngx-material-table';
|
|
9
9
|
import { EntityFilter } from '../../services/model/filter.model';
|
|
10
|
-
import { FilterFn,
|
|
10
|
+
import { FilterFn, ObjectMap } from '../../../shared/types';
|
|
11
11
|
import { MatExpansionPanel } from '@angular/material/expansion';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
|
-
|
|
13
|
+
interface TranslatedFormFieldDefinition extends FormFieldDefinition {
|
|
14
|
+
translatedName?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class PropertyEntity extends Entity<PropertyEntity, string> {
|
|
14
17
|
static fromObject: (source: any, opts?: any) => PropertyEntity;
|
|
15
|
-
definition:
|
|
18
|
+
definition: TranslatedFormFieldDefinition;
|
|
16
19
|
value: any;
|
|
17
|
-
get key(): string;
|
|
18
20
|
fromObject(source: any): void;
|
|
19
21
|
asObject(opts?: EntityAsObjectOptions): any;
|
|
20
22
|
}
|
|
@@ -44,6 +46,7 @@ export declare class AppPropertiesTable extends AppInMemoryTable<PropertyEntity,
|
|
|
44
46
|
showToolbar: boolean;
|
|
45
47
|
filterExpansionPanel: MatExpansionPanel;
|
|
46
48
|
definitionsMapByKey: FormFieldDefinitionMap;
|
|
49
|
+
translationsByKey: ObjectMap<string>;
|
|
47
50
|
filterForm: UntypedFormGroup;
|
|
48
51
|
filterCriteriaCount: number;
|
|
49
52
|
filterPanelFloating: boolean;
|
|
@@ -66,7 +69,10 @@ export declare class AppPropertiesTable extends AppInMemoryTable<PropertyEntity,
|
|
|
66
69
|
toggleFilterPanelFloating(): void;
|
|
67
70
|
closeFilterPanel(): void;
|
|
68
71
|
applyFilterAndClosePanel(event?: Event): void;
|
|
72
|
+
toTranslatedFormFieldDefinition: (definition: FormFieldDefinition) => TranslatedFormFieldDefinition;
|
|
69
73
|
resetProperty(event: UIEvent, row: TableElement<PropertyEntity>): void;
|
|
74
|
+
protected toValue(values: PropertyEntity[], definition: FormFieldDefinition): any;
|
|
70
75
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppPropertiesTable, never>;
|
|
71
76
|
static ɵcmp: i0.ɵɵComponentDeclaration<AppPropertiesTable, "app-properties-table", never, { "definitions": { "alias": "definitions"; "required": false; }; "showToolbar": { "alias": "showToolbar"; "required": false; }; }, {}, never, never, false, never>;
|
|
72
77
|
}
|
|
78
|
+
export {};
|
|
@@ -25,10 +25,6 @@ export declare class AppPropertiesUtils {
|
|
|
25
25
|
static arrayFromObject<T>(sources?: PropertyMap | Property<T>[], definitions?: FormFieldDefinition[], opts?: {
|
|
26
26
|
keepOrphan?: boolean;
|
|
27
27
|
}): Property<T>[] | Promise<Property<T>[]>;
|
|
28
|
-
static sanitize(source: PropertyMap | Property[], opts?: {
|
|
29
|
-
definitions?: FormFieldDefinition[];
|
|
30
|
-
includedKeys?: string[];
|
|
31
|
-
}): PropertyMap | Property[];
|
|
32
28
|
}
|
|
33
29
|
export declare class AppPropertyUtils {
|
|
34
30
|
static key(key: any): string;
|
|
@@ -47,7 +47,6 @@ export interface ChangePasswordData {
|
|
|
47
47
|
}
|
|
48
48
|
export interface UserSettingsOptions {
|
|
49
49
|
options: FormFieldDefinitionMap;
|
|
50
|
-
remoteLocalSettingsKeys?: (keyof LocalSettings | string)[];
|
|
51
50
|
}
|
|
52
51
|
export declare const APP_USER_SETTINGS_OPTIONS: InjectionToken<UserSettingsOptions>;
|
|
53
52
|
export declare const APP_USER_TOKEN_SCOPES: InjectionToken<TokenScope[]>;
|
|
@@ -83,7 +82,6 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
|
|
|
83
82
|
private readonly _listenIntervalInSeconds;
|
|
84
83
|
private _cache;
|
|
85
84
|
private readonly _optionDefs;
|
|
86
|
-
private readonly _remoteLocalSettingsKeys;
|
|
87
85
|
private _$additionalFields;
|
|
88
86
|
private _tokenType$;
|
|
89
87
|
private _apiTokenEnabled;
|
|
@@ -61,7 +61,6 @@ export declare class LocalSettingsService extends StartableService<LocalSettings
|
|
|
61
61
|
apply(settings: Partial<LocalSettings>, opts?: {
|
|
62
62
|
emitEvent?: boolean;
|
|
63
63
|
persistImmediate?: boolean;
|
|
64
|
-
sanitize?: boolean;
|
|
65
64
|
}): Promise<void>;
|
|
66
65
|
applyProperty(key: keyof LocalSettings, value: any, opts?: {
|
|
67
66
|
emitEvent?: boolean;
|
|
@@ -3,7 +3,6 @@ import { Person, UserProfileLabel } from './person.model';
|
|
|
3
3
|
import { Entity, EntityAsObjectOptions } from './entity.model';
|
|
4
4
|
import { LatLongPattern } from '../../../shared/material/latlong/latlong.utils';
|
|
5
5
|
import { UserToken } from './token.model';
|
|
6
|
-
import { FormFieldDefinition } from '../../../shared/form/field.model';
|
|
7
6
|
/**
|
|
8
7
|
* A user account
|
|
9
8
|
*/
|
|
@@ -36,21 +35,7 @@ export declare class UserSettings extends Entity<UserSettings> {
|
|
|
36
35
|
constructor();
|
|
37
36
|
asObject(opts?: EntityAsObjectOptions): any;
|
|
38
37
|
fromObject(source: any, opts?: any): void;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
*
|
|
42
|
-
* @param {S} source - The source object containing properties to merge.
|
|
43
|
-
* @param {Array<keyof S | string | number>} [includedProperties] - Optional array of property keys to be merged into the content map.
|
|
44
|
-
* @param {boolean} [resetContent] - Optional flag to reset existing content. False by default
|
|
45
|
-
* @return {boolean} - Returns true if any changes were made; otherwise, false.
|
|
46
|
-
*/
|
|
47
|
-
merge<S = LocalSettings>(source: S, includedProperties: (keyof S | string | number)[], resetContent?: boolean): boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Transform user settings into local settings
|
|
50
|
-
* @param opts
|
|
51
|
-
*/
|
|
52
|
-
asLocalSettings(opts?: {
|
|
53
|
-
definitions?: FormFieldDefinition[];
|
|
54
|
-
}): Partial<LocalSettings>;
|
|
38
|
+
merge<S = LocalSettings>(source: S, includesProperties: (keyof S)[]): boolean;
|
|
39
|
+
asLocalSettings(): Partial<LocalSettings>;
|
|
55
40
|
}
|
|
56
41
|
export declare function accountToString(data: Account): string;
|
|
@@ -20,9 +20,9 @@ export interface IEntity<T, ID = number, AO extends EntityAsObjectOptions = Enti
|
|
|
20
20
|
__typename: string;
|
|
21
21
|
equals(other: T): boolean;
|
|
22
22
|
clone(opts?: AO & FO): T;
|
|
23
|
-
copy(target: T, opts?: AO & FO):
|
|
23
|
+
copy(target: T, opts?: AO & FO): any;
|
|
24
24
|
asObject(opts?: AO): any;
|
|
25
|
-
fromObject(source: any, opts?: FO):
|
|
25
|
+
fromObject(source: any, opts?: FO): any;
|
|
26
26
|
}
|
|
27
27
|
export declare abstract class Entity<T extends Entity<T, ID, AO, FO>, ID = number, AO extends EntityAsObjectOptions = EntityAsObjectOptions, FO = any> implements IEntity<T, ID, AO, FO> {
|
|
28
28
|
static TYPENAME: string;
|
|
@@ -4,18 +4,18 @@ import { IValidatorService } from '../../../shared/services/validator-service.cl
|
|
|
4
4
|
import { TranslateService } from '@ngx-translate/core';
|
|
5
5
|
import { FormErrors } from '../../../shared/forms';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare abstract class AppValidatorService<T = any
|
|
7
|
+
export declare abstract class AppValidatorService<T = any> extends ValidatorService implements IValidatorService<T> {
|
|
8
8
|
protected formBuilder: UntypedFormBuilder;
|
|
9
9
|
protected translate?: TranslateService;
|
|
10
10
|
protected constructor(formBuilder: UntypedFormBuilder, translate?: TranslateService);
|
|
11
11
|
getRowValidator(): UntypedFormGroup;
|
|
12
|
-
getFormGroup(data?: T
|
|
13
|
-
getFormGroupConfig(data?: T
|
|
12
|
+
getFormGroup(data?: T): UntypedFormGroup;
|
|
13
|
+
getFormGroupConfig(data?: T): {
|
|
14
14
|
[key: string]: any[];
|
|
15
15
|
};
|
|
16
16
|
getI18nFormErrors(control: AbstractControl): string[];
|
|
17
17
|
getI18nErrors(errors: FormErrors): string[];
|
|
18
18
|
protected getI18nError(errorKey: string, errorContent?: any): string;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppValidatorService<any
|
|
20
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AppValidatorService<any
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppValidatorService<any>, never>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AppValidatorService<any>, never, never, {}, {}, never, never, false, never>;
|
|
21
21
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { AsyncTableDataSource, AsyncTableElement, TableDataSourceConfig, ValidatorService } from '@e-is/ngx-material-table';
|
|
2
2
|
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
3
|
-
import { IEntity } from '../services/model/entity.model';
|
|
3
|
+
import { Entity, IEntity } from '../services/model/entity.model';
|
|
4
4
|
import { OnDestroy } from '@angular/core';
|
|
5
5
|
import { SortDirection } from '@angular/material/sort';
|
|
6
6
|
import { CollectionViewer } from '@angular/cdk/collections';
|
|
7
7
|
import { EntitiesServiceWatchOptions, FetchMoreFn, IEntitiesService, LoadResult } from '../../shared/services/entity-service.class';
|
|
8
8
|
import { IEntitiesTableDataSource } from './table.model';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
|
-
export interface EntitiesAsyncTableDataSourceConfig<T extends
|
|
10
|
+
export interface EntitiesAsyncTableDataSourceConfig<T extends Entity<T, ID>, ID = number, WO extends EntitiesServiceWatchOptions = EntitiesServiceWatchOptions, SO = any> extends TableDataSourceConfig {
|
|
11
11
|
onRowCreated?: (row: AsyncTableElement<T>) => Promise<void> | void;
|
|
12
12
|
saveOnlyDirtyRows?: boolean;
|
|
13
13
|
readOnly?: boolean;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { TableDataSource, TableDataSourceConfig, TableElement, ValidatorService } from '@e-is/ngx-material-table';
|
|
2
2
|
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
3
|
-
import { IEntity } from '../services/model/entity.model';
|
|
3
|
+
import { Entity, IEntity } from '../services/model/entity.model';
|
|
4
4
|
import { OnDestroy } from '@angular/core';
|
|
5
5
|
import { SortDirection } from '@angular/material/sort';
|
|
6
6
|
import { CollectionViewer } from '@angular/cdk/collections';
|
|
7
7
|
import { EntitiesServiceWatchOptions, FetchMoreFn, IEntitiesService, LoadResult } from '../../shared/services/entity-service.class';
|
|
8
8
|
import { IEntitiesTableDataSource } from './table.model';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
|
-
export interface EntitiesTableDataSourceConfig<T extends
|
|
10
|
+
export interface EntitiesTableDataSourceConfig<T extends Entity<T, ID>, ID = number, WO extends EntitiesServiceWatchOptions = EntitiesServiceWatchOptions, SO = any> extends TableDataSourceConfig {
|
|
11
11
|
onRowCreated?: (row: TableElement<T>) => Promise<void> | void;
|
|
12
12
|
saveOnlyDirtyRows?: boolean;
|
|
13
13
|
saveBeforeDelete?: boolean;
|
|
@@ -3,8 +3,9 @@ import { LocalSettingsService } from '../../core/services/local-settings.service
|
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
4
|
import { NetworkService } from '../../core/services/network.service';
|
|
5
5
|
import { MarkdownService } from './markdown.service';
|
|
6
|
-
import { NavController } from '@ionic/angular';
|
|
6
|
+
import { NavController, ToastController } from '@ionic/angular';
|
|
7
7
|
import { ActivatedRoute } from '@angular/router';
|
|
8
|
+
import { PrintService } from '../print/print.service';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export interface AppMarkdownOptions {
|
|
10
11
|
data?: string;
|
|
@@ -16,13 +17,15 @@ export declare class AppMarkdownContent implements AppMarkdownOptions, OnDestroy
|
|
|
16
17
|
protected element: ElementRef<HTMLElement>;
|
|
17
18
|
private _document;
|
|
18
19
|
protected route: ActivatedRoute;
|
|
19
|
-
private
|
|
20
|
+
private _printId;
|
|
20
21
|
private _clickSubscription;
|
|
21
22
|
protected navController: NavController;
|
|
22
23
|
protected settings: LocalSettingsService;
|
|
23
24
|
protected translate: TranslateService;
|
|
24
25
|
protected network: NetworkService;
|
|
25
26
|
protected markdownService: MarkdownService;
|
|
27
|
+
protected toastController: ToastController;
|
|
28
|
+
protected printService: PrintService;
|
|
26
29
|
protected loading: boolean;
|
|
27
30
|
protected error: string;
|
|
28
31
|
protected baseUrl: string;
|
|
@@ -52,13 +55,15 @@ export declare class AppMarkdownContent implements AppMarkdownOptions, OnDestroy
|
|
|
52
55
|
ngOnDestroy(): void;
|
|
53
56
|
goBack(event?: Event): void;
|
|
54
57
|
get canGoBack(): boolean;
|
|
55
|
-
print(
|
|
56
|
-
markAsLoaded(
|
|
57
|
-
|
|
58
|
+
print(): Promise<void>;
|
|
59
|
+
markAsLoaded(opts?: {
|
|
60
|
+
emitEvent?: boolean;
|
|
61
|
+
}): void;
|
|
62
|
+
markAsLoading(opts?: {
|
|
63
|
+
emitEvent?: boolean;
|
|
64
|
+
}): void;
|
|
58
65
|
setError(error: string | Error): void;
|
|
59
66
|
resetError(): void;
|
|
60
|
-
private createPrintHiddenIframe;
|
|
61
|
-
private injectAppStylesIntoIframe;
|
|
62
67
|
protected setData(value: string, opts?: {
|
|
63
68
|
anchor?: string;
|
|
64
69
|
addToNavigationHistory?: boolean;
|
|
@@ -13,6 +13,8 @@ export interface AppMarkdownModalOptions {
|
|
|
13
13
|
showError?: boolean;
|
|
14
14
|
cssClass?: string;
|
|
15
15
|
canPrint?: boolean;
|
|
16
|
+
enableNavigationHistory?: boolean;
|
|
17
|
+
debug?: boolean;
|
|
16
18
|
}
|
|
17
19
|
export declare class AppMarkdownModal implements AppMarkdownModalOptions {
|
|
18
20
|
protected injector: Injector;
|
|
@@ -22,12 +24,13 @@ export declare class AppMarkdownModal implements AppMarkdownModalOptions {
|
|
|
22
24
|
protected translate: TranslateService;
|
|
23
25
|
protected network: NetworkService;
|
|
24
26
|
protected cd: ChangeDetectorRef;
|
|
25
|
-
debug: boolean;
|
|
26
27
|
title: string;
|
|
27
28
|
showError: boolean;
|
|
28
29
|
canPrint: boolean;
|
|
29
30
|
data: string;
|
|
30
31
|
src: string;
|
|
32
|
+
enableNavigationHistory: boolean;
|
|
33
|
+
debug: boolean;
|
|
31
34
|
content: AppMarkdownContent;
|
|
32
35
|
static show(modalCtrl: ModalController, options: AppMarkdownModalOptions): Promise<import("@ionic/core").OverlayEventDetail<any>>;
|
|
33
36
|
constructor(injector: Injector, viewCtrl: ModalController, platform: PlatformService, settings: LocalSettingsService, translate: TranslateService, network: NetworkService, cd: ChangeDetectorRef);
|
|
@@ -38,5 +41,9 @@ export declare class AppMarkdownModal implements AppMarkdownModalOptions {
|
|
|
38
41
|
protected setError(err: string | Error): void;
|
|
39
42
|
protected resetError(): void;
|
|
40
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppMarkdownModal, never>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AppMarkdownModal, "app-markdown-modal", never, { "
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppMarkdownModal, "app-markdown-modal", never, { "title": { "alias": "title"; "required": false; }; "showError": { "alias": "showError"; "required": false; }; "canPrint": { "alias": "canPrint"; "required": false; }; "data": { "alias": "data"; "required": false; }; "src": { "alias": "src"; "required": false; }; "enableNavigationHistory": { "alias": "enableNavigationHistory"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; }, {}, never, never, false, never>;
|
|
45
|
+
static ngAcceptInputType_showError: unknown;
|
|
46
|
+
static ngAcceptInputType_canPrint: unknown;
|
|
47
|
+
static ngAcceptInputType_enableNavigationHistory: unknown;
|
|
48
|
+
static ngAcceptInputType_debug: unknown;
|
|
42
49
|
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { ModalController } from '@ionic/angular';
|
|
3
|
+
import { Environment } from '../../../../environments/environment.class';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class MarkdownTestPage {
|
|
5
6
|
private modalCtrl;
|
|
6
7
|
private cd;
|
|
8
|
+
protected environment: Environment;
|
|
7
9
|
protected markdownModalTitle: string;
|
|
10
|
+
protected debug: boolean;
|
|
8
11
|
protected markdownUrl: string;
|
|
9
|
-
constructor(modalCtrl: ModalController, cd: ChangeDetectorRef);
|
|
12
|
+
constructor(modalCtrl: ModalController, cd: ChangeDetectorRef, environment: Environment);
|
|
10
13
|
onSubmit(event: Event, newUrl: string | number): void;
|
|
11
14
|
updateInputUrl(url: string): void;
|
|
12
15
|
openHelpModal(event: Event): Promise<import("@ionic/core").OverlayEventDetail<any>>;
|
|
@@ -9,9 +9,7 @@ import { INamedFilterService, NamedFilterLoadOptions, NamedFilterWatchOptions }
|
|
|
9
9
|
import { MatFormFieldAppearance, SubscriptSizing } from '@angular/material/form-field';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
export type NamedFilterSelectorButtonsPosition = 'matSuffix' | 'after';
|
|
12
|
-
export declare class NamedFilterSelector extends AppForm<{
|
|
13
|
-
namedFilter: any;
|
|
14
|
-
}> implements OnInit {
|
|
12
|
+
export declare class NamedFilterSelector extends AppForm<any> implements OnInit {
|
|
15
13
|
protected injector: Injector;
|
|
16
14
|
protected formBuilder: UntypedFormBuilder;
|
|
17
15
|
protected cd: ChangeDetectorRef;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Entity, IEntity } from '../../core/services/model/entity.model';
|
|
2
2
|
import { EntityFilter, IEntityFilter } from '../../core/services/model/filter.model';
|
|
3
|
-
export interface INamedFilter<T extends INamedFilter<T>> extends IEntity<T> {
|
|
3
|
+
export interface INamedFilter<T extends INamedFilter<T>> extends IEntity<T, number> {
|
|
4
4
|
name: string;
|
|
5
5
|
entityName: string;
|
|
6
6
|
content: any;
|
|
7
7
|
recorderPersonId: number;
|
|
8
8
|
recorderDepartmentId: number;
|
|
9
9
|
}
|
|
10
|
-
export declare class NamedFilter<T extends NamedFilter<any> = NamedFilter<any>> extends Entity<T> implements INamedFilter<T> {
|
|
10
|
+
export declare class NamedFilter<T extends NamedFilter<any> = NamedFilter<any>> extends Entity<T, number> implements INamedFilter<T> {
|
|
11
11
|
static fromObject: (source: any, opts?: any) => NamedFilter;
|
|
12
12
|
name: string;
|
|
13
13
|
entityName: string;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ToastController } from '@ionic/angular';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { StorageService } from '../storage/storage.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface PrintOptions {
|
|
6
|
+
id?: string | number;
|
|
7
|
+
title?: string;
|
|
8
|
+
showToast?: boolean;
|
|
9
|
+
toastMessage?: string;
|
|
10
|
+
style?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const PRINT_LOADING_STORAGE_KEY_PREFIX = "print-loading-";
|
|
13
|
+
export declare class PrintService {
|
|
14
|
+
protected toastController: ToastController;
|
|
15
|
+
protected translate: TranslateService;
|
|
16
|
+
protected storage: StorageService;
|
|
17
|
+
protected document: Document;
|
|
18
|
+
private printId;
|
|
19
|
+
constructor(toastController: ToastController, translate: TranslateService, storage: StorageService, document: Document);
|
|
20
|
+
nextJobId(): number;
|
|
21
|
+
printElement(element: HTMLElement, opts?: PrintOptions): Promise<void>;
|
|
22
|
+
printHTML(html: string, opts?: PrintOptions): Promise<void>;
|
|
23
|
+
printUrl(url: string, opts?: Omit<PrintOptions, 'style'>): Promise<void>;
|
|
24
|
+
printIframe(iframe: HTMLIFrameElement, opts?: PrintOptions): Promise<void>;
|
|
25
|
+
markAsLoading(id: string | number): Promise<void>;
|
|
26
|
+
markAsLoaded(id: string | number): Promise<void>;
|
|
27
|
+
isLoaded(id: string | number): Promise<boolean>;
|
|
28
|
+
isLoading(id: string | number): Promise<boolean>;
|
|
29
|
+
protected createPrintIframeByUrl(url: string): HTMLIFrameElement;
|
|
30
|
+
protected createPrintIframeByHtml(html: string, opts?: {
|
|
31
|
+
title?: string;
|
|
32
|
+
inlineStyle?: string;
|
|
33
|
+
}): HTMLIFrameElement;
|
|
34
|
+
/**
|
|
35
|
+
* Applies the styles from the provided document, including external stylesheets and inline styles,
|
|
36
|
+
* to the specified iframe's document.
|
|
37
|
+
*
|
|
38
|
+
* @param {HTMLIFrameElement} iframe - The iframe to which the styles are applied.
|
|
39
|
+
* @return {void} Does not return a value.
|
|
40
|
+
*/
|
|
41
|
+
protected applyDocumentStyleToIframe(iframe: HTMLIFrameElement): void;
|
|
42
|
+
protected waitIdle(iframe: HTMLIFrameElement, opts?: {
|
|
43
|
+
id?: number | string;
|
|
44
|
+
timeout?: number;
|
|
45
|
+
}): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Triggers the print functionality of the given iframe and resolves or rejects based on the print completion or timeout.
|
|
48
|
+
*
|
|
49
|
+
* @param {HTMLIFrameElement} iframe - The iframe element to be printed.
|
|
50
|
+
* @param {{timeout?: number}} [opts] - An optional configuration object.
|
|
51
|
+
* @param {number} [opts.timeout] - The maximum time in milliseconds to wait for the print to complete before rejecting the promise.
|
|
52
|
+
* @return {Promise<void>} A promise that resolves after the print is completed or rejects if a timeout occurs.
|
|
53
|
+
*/
|
|
54
|
+
protected print(iframe: HTMLIFrameElement, opts?: {
|
|
55
|
+
timeout?: number;
|
|
56
|
+
}): Promise<void>;
|
|
57
|
+
private showToast;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PrintService, never>;
|
|
59
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PrintService>;
|
|
60
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Moment } from 'moment';
|
|
2
|
-
import { IEntity } from '../../core/services/model/entity.model';
|
|
2
|
+
import { Entity, IEntity } from '../../core/services/model/entity.model';
|
|
3
3
|
import { IEntityFilter } from '../../core/services/model/filter.model';
|
|
4
4
|
import { AppColors, IconRef } from '../../shared/types';
|
|
5
5
|
export type EventLevel = 'ERROR' | 'WARNING' | 'INFO' | 'DEBUG';
|
|
6
|
-
export interface IUserEvent<E extends
|
|
6
|
+
export interface IUserEvent<E extends Entity<E, ID>, ID = number, U = string, L = EventLevel> extends IEntity<E, ID> {
|
|
7
7
|
issuer: U;
|
|
8
8
|
recipient: U;
|
|
9
9
|
type: string;
|
|
@@ -635,7 +635,7 @@
|
|
|
635
635
|
"FIELD_NOT_EQUALS": "Value not equals",
|
|
636
636
|
"SPACE_NOT_ALLOW": "Spaces or special characters not allowed",
|
|
637
637
|
"SCRYPT_ERROR": "Unable to create account keys",
|
|
638
|
-
"INVALID_OR_INCOMPLETE_FILL": "
|
|
638
|
+
"INVALID_OR_INCOMPLETE_FILL": "Incomplete or invalid entry",
|
|
639
639
|
"UNKNOWN_ACCOUNT_EMAIL": "No account matches this email.",
|
|
640
640
|
"BAD_PASSWORD": "Incorrect password.",
|
|
641
641
|
"EMAIL_ALREADY_REGISTERED": "Email already registered",
|
|
@@ -690,7 +690,8 @@
|
|
|
690
690
|
"SUBSCRIBE_ERROR": "Error while subscribe to changes",
|
|
691
691
|
"FIELD_NOT_EXISTS": "Value doesn't exist",
|
|
692
692
|
"FIREFOX_NO_STORAGE": "The application cannot run with Firefox in 'private' mode or without keeping navigation history",
|
|
693
|
-
"FEATURE_NOT_IMPLEMENTED": "Feature not implemented! <small><br/>Please contact your administrator.</small>"
|
|
693
|
+
"FEATURE_NOT_IMPLEMENTED": "Feature not implemented! <small><br/>Please contact your administrator.</small>",
|
|
694
|
+
"INCOMPATIBLE_WEB_BROWSER": "Feature not compatible with your web browser. <small><br/>Please contact your administrator, or try another web browser.</small>"
|
|
694
695
|
},
|
|
695
696
|
"CONFIRM": {
|
|
696
697
|
"ALERT_HEADER": "Confirmation",
|
package/src/assets/i18n/en.json
CHANGED
|
@@ -689,7 +689,8 @@
|
|
|
689
689
|
"SUBSCRIBE_ERROR": "Error while subscribe to changes",
|
|
690
690
|
"FIELD_NOT_EXISTS": "Value doesn't exist",
|
|
691
691
|
"FIREFOX_NO_STORAGE": "The application cannot run with Firefox in 'private' mode or without keeping navigation history",
|
|
692
|
-
"FEATURE_NOT_IMPLEMENTED": "Feature not implemented! <small><br/>Please contact your administrator.</small>"
|
|
692
|
+
"FEATURE_NOT_IMPLEMENTED": "Feature not implemented! <small><br/>Please contact your administrator.</small>",
|
|
693
|
+
"INCOMPATIBLE_WEB_BROWSER": "Feature not compatible with your web browser. <small><br/>Please contact your administrator, or try another web browser.</small>"
|
|
693
694
|
},
|
|
694
695
|
"CONFIRM": {
|
|
695
696
|
"ALERT_HEADER": "Confirmation",
|
package/src/assets/i18n/fr.json
CHANGED
|
@@ -691,7 +691,8 @@
|
|
|
691
691
|
"SUBSCRIBE_ERROR": "Échec de l'abonnement distant aux modifications",
|
|
692
692
|
"FIELD_NOT_EXISTS": "Cette valeur n'existe pas",
|
|
693
693
|
"FIREFOX_NO_STORAGE": "L'application ne peut pas fonctionner sur Firefox en mode 'navigation privée' ou si la conservation de l'historique est désactivée",
|
|
694
|
-
"FEATURE_NOT_IMPLEMENTED": "Fonctionnalité non implémentée ! <small><br/>Veuillez contacter votre administrateur.</small>"
|
|
694
|
+
"FEATURE_NOT_IMPLEMENTED": "Fonctionnalité non implémentée ! <small><br/>Veuillez contacter votre administrateur.</small>",
|
|
695
|
+
"INCOMPATIBLE_WEB_BROWSER": "Fonctionnalité non compatible avec votre navigateur Internet. <small><br/>Veuillez contacter votre administrateur, ou tester un autre navigateur.</small>"
|
|
695
696
|
},
|
|
696
697
|
"CONFIRM": {
|
|
697
698
|
"ALERT_HEADER": "Confirmation",
|
package/src/assets/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "ngx-sumaris-components",
|
|
3
3
|
"short_name": "ngx-sumaris-components",
|
|
4
4
|
"manifest_version": 1,
|
|
5
|
-
"version": "18.6.
|
|
5
|
+
"version": "18.6.11-alpha1",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|