@sumaris-net/ngx-components 2.6.5-rc1 → 2.6.6-rc2
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/doc/changelog.md +6 -0
- package/esm2020/public_api.mjs +12 -2
- package/esm2020/src/app/admin/services/filter/person.filter.mjs +1 -1
- package/esm2020/src/app/admin/services/person.service.mjs +9 -1
- package/esm2020/src/app/admin/users/users.mjs +73 -67
- package/esm2020/src/app/core/account/account.page.mjs +5 -3
- package/esm2020/src/app/core/form/buttons/form-buttons-bar.component.mjs +44 -8
- package/esm2020/src/app/core/form/entity/editor.class.mjs +7 -7
- package/esm2020/src/app/core/form/entity/entity-editor-modal.class.mjs +4 -3
- package/esm2020/src/app/core/form/entity/entity-editor.class.mjs +6 -3
- package/esm2020/src/app/core/form/form.class.mjs +8 -3
- package/esm2020/src/app/core/form/form.utils.mjs +4 -1
- package/esm2020/src/app/core/form/properties/properties.table.mjs +1 -1
- package/esm2020/src/app/core/form/properties/testing/properties-form.test.mjs +2 -2
- package/esm2020/src/app/core/form/text-popover/text-popover.component.mjs +2 -2
- package/esm2020/src/app/core/graphql/graphql.service.mjs +6 -2
- package/esm2020/src/app/core/graphql/graphql.utils.mjs +1 -1
- package/esm2020/src/app/core/home/home.mjs +6 -5
- package/esm2020/src/app/core/install/install-upgrade-card.component.mjs +3 -2
- package/esm2020/src/app/core/menu/menu.component.mjs +80 -171
- package/esm2020/src/app/core/menu/menu.model.mjs +219 -7
- package/esm2020/src/app/core/menu/menu.module.mjs +27 -14
- package/esm2020/src/app/core/menu/menu.service.mjs +610 -11
- package/esm2020/src/app/core/menu/sub-menu-tab.directive.mjs +98 -0
- package/esm2020/src/app/core/menu/testing/menu-other.testing.mjs +48 -0
- package/esm2020/src/app/core/menu/testing/menu.testing.mjs +121 -0
- package/esm2020/src/app/core/menu/testing/menu.testing.module.mjs +79 -0
- package/esm2020/src/app/core/peer/select-peer.modal.mjs +3 -2
- package/esm2020/src/app/core/register/register-confirm.page.mjs +4 -4
- package/esm2020/src/app/core/register/register.form.mjs +21 -19
- package/esm2020/src/app/core/services/account.service.mjs +9 -15
- package/esm2020/src/app/core/services/base-entity-service.class.mjs +1 -1
- package/esm2020/src/app/core/services/base-graphql-service.class.mjs +2 -4
- package/esm2020/src/app/core/services/config/core.config.mjs +9 -2
- package/esm2020/src/app/core/services/config.service.mjs +23 -22
- package/esm2020/src/app/core/services/crypto.service.mjs +14 -21
- package/esm2020/src/app/core/services/local-settings.service.mjs +12 -1
- package/esm2020/src/app/core/services/model/account.model.mjs +27 -2
- package/esm2020/src/app/core/services/model/config.model.mjs +1 -1
- package/esm2020/src/app/core/services/model/department.model.mjs +1 -1
- package/esm2020/src/app/core/services/model/entity.decorators.mjs +1 -1
- package/esm2020/src/app/core/services/model/entity.model.mjs +20 -35
- package/esm2020/src/app/core/services/model/filter.model.mjs +3 -1
- package/esm2020/src/app/core/services/model/peer.model.mjs +1 -1
- package/esm2020/src/app/core/services/model/person.model.mjs +5 -1
- package/esm2020/src/app/core/services/model/referential.model.mjs +3 -3
- package/esm2020/src/app/core/services/model/token.model.mjs +1 -1
- package/esm2020/src/app/core/services/model/tree-item-entity.model.mjs +199 -0
- package/esm2020/src/app/core/services/network.service.mjs +12 -8
- package/esm2020/src/app/core/services/network.utils.mjs +1 -1
- package/esm2020/src/app/core/services/platform.service.mjs +15 -16
- package/esm2020/src/app/core/services/storage/entities-storage.service.mjs +10 -10
- package/esm2020/src/app/core/services/testing/referential-filter.model.mjs +1 -1
- package/esm2020/src/app/core/services/validator/local-settings.validator.mjs +3 -3
- package/esm2020/src/app/core/settings/settings.page.mjs +3 -3
- package/esm2020/src/app/core/table/async-table.class.mjs +4 -3
- package/esm2020/src/app/core/table/entities-async-table-datasource.class.mjs +1 -1
- package/esm2020/src/app/core/table/entities-table-datasource.class.mjs +1 -1
- package/esm2020/src/app/core/table/table-select-columns.component.mjs +1 -1
- package/esm2020/src/app/core/table/table.class.mjs +64 -59
- package/esm2020/src/app/core/table/table.utils.mjs +6 -3
- package/esm2020/src/app/core/table/testing/table.testing.mjs +4 -3
- package/esm2020/src/app/shared/audio/audio.mjs +5 -5
- package/esm2020/src/app/shared/capacitor/plugins.mjs +1 -1
- package/esm2020/src/app/shared/constants.mjs +2 -1
- package/esm2020/src/app/shared/dates.mjs +5 -3
- package/esm2020/src/app/shared/debug/debug.component.mjs +1 -1
- package/esm2020/src/app/shared/directives/autofocus.directive.mjs +5 -4
- package/esm2020/src/app/shared/directives/drag-and-drop.directive.mjs +1 -1
- package/esm2020/src/app/shared/directives/ng-var.directive.mjs +1 -1
- package/esm2020/src/app/shared/directives/resizable/resizable.directive.mjs +1 -1
- package/esm2020/src/app/shared/events.mjs +2 -1
- package/esm2020/src/app/shared/file/csv.utils.mjs +12 -14
- package/esm2020/src/app/shared/file/file.utils.mjs +2 -2
- package/esm2020/src/app/shared/file/images.utils.mjs +2 -2
- package/esm2020/src/app/shared/file/json.utils.mjs +3 -3
- package/esm2020/src/app/shared/file/uri.utils.mjs +2 -1
- package/esm2020/src/app/shared/form/field.component.mjs +28 -3
- package/esm2020/src/app/shared/forms.mjs +48 -30
- package/esm2020/src/app/shared/functions.mjs +7 -2
- package/esm2020/src/app/shared/geolocation/geolocation.utils.mjs +1 -1
- package/esm2020/src/app/shared/help/help.modal.mjs +2 -2
- package/esm2020/src/app/shared/image/gallery/image-gallery.component.mjs +10 -7
- package/esm2020/src/app/shared/image/gallery/testing/gallegry.model.testing.mjs +1 -1
- package/esm2020/src/app/shared/image/gallery/testing/gallery.service.testing.mjs +1 -1
- package/esm2020/src/app/shared/image/gallery/testing/gallery.testing.mjs +2 -2
- package/esm2020/src/app/shared/image/gallery/testing/gallery.testing.module.mjs +1 -1
- package/esm2020/src/app/shared/interceptors/progess.interceptor.mjs +1 -1
- package/esm2020/src/app/shared/logging/logger.model.mjs +1 -1
- package/esm2020/src/app/shared/logging/logging-service.class.mjs +2 -2
- package/esm2020/src/app/shared/logging/logging-service.config.mjs +1 -1
- package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.mjs +10 -10
- package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.utils.mjs +4 -6
- package/esm2020/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +1 -1
- package/esm2020/src/app/shared/material/badge/badge.directive.mjs +8 -3
- package/esm2020/src/app/shared/material/badge/badge.test.mjs +2 -2
- package/esm2020/src/app/shared/material/chips/material.chips.mjs +9 -10
- package/esm2020/src/app/shared/material/chips/testing/chips.test.mjs +3 -3
- package/esm2020/src/app/shared/material/datetime/material.date.mjs +2 -2
- package/esm2020/src/app/shared/material/datetime/material.dateshort.mjs +3 -3
- package/esm2020/src/app/shared/material/datetime/material.datetime.mjs +3 -3
- package/esm2020/src/app/shared/material/datetime/testing/mat-date-time.test.mjs +1 -1
- package/esm2020/src/app/shared/material/datetime/testing/mat-date.test.mjs +1 -1
- package/esm2020/src/app/shared/material/datetime/testing/mat-dateshort.test.mjs +1 -1
- package/esm2020/src/app/shared/material/duration/material.duration.mjs +3 -3
- package/esm2020/src/app/shared/material/latlong/material.latlong.mjs +5 -4
- package/esm2020/src/app/shared/material/latlong/testing/latlong.test.mjs +1 -1
- package/esm2020/src/app/shared/material/material.animations.mjs +41 -2
- package/esm2020/src/app/shared/material/material.testing.module.mjs +2 -2
- package/esm2020/src/app/shared/material/numpad/testing/numpad.test.mjs +1 -1
- package/esm2020/src/app/shared/material/swipe/testing/swipe.test.mjs +1 -1
- package/esm2020/src/app/shared/modules.mjs +2 -1
- package/esm2020/src/app/shared/named-filter/named-filter.model.mjs +1 -1
- package/esm2020/src/app/shared/observables.mjs +3 -2
- package/esm2020/src/app/shared/pipes/colors.pipe.mjs +3 -1
- package/esm2020/src/app/shared/pipes/date-format.pipe.mjs +1 -1
- package/esm2020/src/app/shared/pipes/form.pipes.mjs +1 -1
- package/esm2020/src/app/shared/pipes/property.pipes.mjs +1 -1
- package/esm2020/src/app/shared/pipes/translate-context.pipe.mjs +1 -1
- package/esm2020/src/app/shared/platforms.mjs +1 -1
- package/esm2020/src/app/shared/services/memory-entity-service.class.mjs +3 -1
- package/esm2020/src/app/shared/services/startable-observable-service.class.mjs +5 -6
- package/esm2020/src/app/shared/services/startable-service.class.mjs +1 -1
- package/esm2020/src/app/shared/services/translate-context.service.mjs +11 -13
- package/esm2020/src/app/shared/services/validator-service.class.mjs +1 -1
- package/esm2020/src/app/shared/shared-routing.module.mjs +2 -1
- package/esm2020/src/app/shared/shared.testing.module.mjs +16 -8
- package/esm2020/src/app/shared/storage/storage-explorer.component.mjs +3 -3
- package/esm2020/src/app/shared/storage/storage-explorer.module.mjs +5 -18
- package/esm2020/src/app/shared/storage/storage-explorer.testing-routing.module.mjs +35 -0
- package/esm2020/src/app/shared/storage/storage-explorer.testing.module.mjs +33 -0
- package/esm2020/src/app/shared/storage/storage.service.mjs +3 -3
- package/esm2020/src/app/shared/storage/storage.utils.mjs +1 -1
- package/esm2020/src/app/shared/testing/observable.test.mjs +2 -2
- package/esm2020/src/app/shared/testing/tests.page.mjs +1 -1
- package/esm2020/src/app/shared/toast/toast.testing.mjs +1 -1
- package/esm2020/src/app/shared/toast/toasts.mjs +2 -2
- package/esm2020/src/app/shared/toolbar/toolbar.mjs +1 -1
- package/esm2020/src/app/shared/upload-file/testing/upload-file.testing.mjs +2 -1
- package/esm2020/src/app/shared/upload-file/upload-file.component.mjs +1 -1
- package/esm2020/src/app/shared/validator/form-error-adapter.class.mjs +5 -5
- package/esm2020/src/app/shared/validator/validators.mjs +10 -3
- package/esm2020/src/app/shared/version/versions.mjs +2 -2
- package/esm2020/src/app/social/job/progression/job-progression.icon.mjs +2 -2
- package/esm2020/src/app/social/job/progression/job-progression.model.mjs +1 -1
- package/esm2020/src/app/social/job/progression/job-progression.service.mjs +1 -1
- package/esm2020/src/app/social/job/testing/job-progression.testing.mjs +1 -1
- package/esm2020/src/app/social/job/testing/job-progression.testing.service.mjs +3 -3
- package/esm2020/src/app/social/message/message.form.mjs +11 -8
- package/esm2020/src/app/social/message/message.modal.mjs +1 -1
- package/esm2020/src/app/social/message/message.model.mjs +2 -3
- package/esm2020/src/app/social/message/message.service.mjs +2 -2
- package/esm2020/src/app/social/social.module.mjs +2 -2
- package/esm2020/src/app/social/user-event/testing/user-event.testing.mjs +9 -9
- package/esm2020/src/app/social/user-event/testing/user-event.testing.model.mjs +1 -1
- package/esm2020/src/app/social/user-event/testing/user-event.testing.service.mjs +1 -1
- package/esm2020/src/app/social/user-event/user-event.model.mjs +1 -1
- package/esm2020/src/app/social/user-event/user-event.service.mjs +4 -3
- package/fesm2015/sumaris-net.ngx-components.mjs +2820 -1318
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +2806 -1334
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +8 -9
- package/public_api.d.ts +11 -1
- package/src/app/admin/services/person.service.d.ts +5 -0
- package/src/app/admin/users/users.d.ts +4 -2
- package/src/app/core/account/account.page.d.ts +1 -0
- package/src/app/core/form/buttons/form-buttons-bar.component.d.ts +14 -2
- package/src/app/core/form/entity/entity-editor-modal.class.d.ts +1 -0
- package/src/app/core/form/form.class.d.ts +2 -0
- package/src/app/core/form/form.utils.d.ts +4 -1
- package/src/app/core/form/text-popover/text-popover.component.d.ts +2 -1
- package/src/app/core/graphql/graphql.service.d.ts +5 -4
- package/src/app/core/graphql/graphql.utils.d.ts +2 -2
- package/src/app/core/home/home.d.ts +6 -6
- package/src/app/core/install/install-upgrade-card.component.d.ts +3 -2
- package/src/app/core/menu/menu.component.d.ts +29 -26
- package/src/app/core/menu/menu.model.d.ts +123 -6
- package/src/app/core/menu/menu.module.d.ts +8 -4
- package/src/app/core/menu/menu.service.d.ts +76 -5
- package/src/app/core/menu/sub-menu-tab.directive.d.ts +29 -0
- package/src/app/core/menu/testing/menu-other.testing.d.ts +15 -0
- package/src/app/core/menu/testing/menu.testing.d.ts +43 -0
- package/src/app/core/menu/testing/menu.testing.module.d.ts +12 -0
- package/src/app/core/peer/select-peer.modal.d.ts +4 -3
- package/src/app/core/register/register.form.d.ts +3 -2
- package/src/app/core/services/account.service.d.ts +4 -3
- package/src/app/core/services/config/core.config.d.ts +1 -0
- package/src/app/core/services/config.service.d.ts +5 -3
- package/src/app/core/services/crypto.service.d.ts +7 -7
- package/src/app/core/services/local-settings.service.d.ts +1 -0
- package/src/app/core/services/model/account.model.d.ts +7 -1
- package/src/app/core/services/model/entity.model.d.ts +5 -8
- package/src/app/core/services/model/filter.model.d.ts +2 -0
- package/src/app/core/services/model/person.model.d.ts +1 -0
- package/src/app/core/services/model/tree-item-entity.model.d.ts +53 -0
- package/src/app/core/services/network.service.d.ts +4 -3
- package/src/app/core/services/platform.service.d.ts +4 -5
- package/src/app/core/services/storage/entities-storage.service.d.ts +3 -3
- package/src/app/core/settings/settings.page.d.ts +6 -6
- package/src/app/core/table/async-table.class.d.ts +1 -0
- package/src/app/core/table/table.class.d.ts +11 -7
- package/src/app/core/table/testing/table.testing.d.ts +2 -1
- package/src/app/shared/constants.d.ts +1 -0
- package/src/app/shared/dates.d.ts +2 -0
- package/src/app/shared/events.d.ts +1 -0
- package/src/app/shared/file/uri.utils.d.ts +1 -0
- package/src/app/shared/form/field.component.d.ts +1 -0
- package/src/app/shared/forms.d.ts +4 -1
- package/src/app/shared/functions.d.ts +1 -0
- package/src/app/shared/help/help.modal.d.ts +1 -1
- package/src/app/shared/image/gallery/image-gallery.component.d.ts +1 -1
- package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +1 -0
- package/src/app/shared/material/badge/badge.directive.d.ts +1 -1
- package/src/app/shared/material/datetime/material.dateshort.d.ts +1 -1
- package/src/app/shared/material/datetime/material.datetime.d.ts +2 -2
- package/src/app/shared/material/latlong/material.latlong.d.ts +1 -0
- package/src/app/shared/material/material.animations.d.ts +2 -0
- package/src/app/shared/modules.d.ts +1 -0
- package/src/app/shared/observables.d.ts +1 -0
- package/src/app/shared/pipes/translate-context.pipe.d.ts +1 -1
- package/src/app/shared/services/memory-entity-service.class.d.ts +2 -0
- package/src/app/shared/services/startable-observable-service.class.d.ts +1 -1
- package/src/app/shared/services/translate-context.service.d.ts +2 -2
- package/src/app/shared/services/validator-service.class.d.ts +1 -0
- package/src/app/shared/shared-routing.module.d.ts +1 -0
- package/src/app/shared/shared.testing.module.d.ts +3 -2
- package/src/app/shared/storage/storage-explorer.component.d.ts +2 -2
- package/src/app/shared/storage/storage-explorer.module.d.ts +5 -8
- package/src/app/shared/storage/storage-explorer.testing-routing.module.d.ts +9 -0
- package/src/app/shared/storage/storage-explorer.testing.module.d.ts +10 -0
- package/src/app/shared/storage/storage.service.d.ts +0 -1
- package/src/app/shared/upload-file/testing/upload-file.testing.d.ts +1 -0
- package/src/app/shared/validator/validators.d.ts +4 -0
- package/src/app/social/user-event/user-event.model.d.ts +1 -2
- package/src/assets/i18n/en-US.json +4 -0
- package/src/assets/i18n/en.json +4 -0
- package/src/assets/i18n/fr.json +13 -1
- package/src/theme/_ngx-components.scss +2 -1
|
@@ -18,9 +18,9 @@ declare interface EntityStorageMap {
|
|
|
18
18
|
}
|
|
19
19
|
export declare class EntitiesStorage extends StartableService<EntityStorageMap> {
|
|
20
20
|
private platform;
|
|
21
|
-
private progressBarService;
|
|
22
21
|
private storage;
|
|
23
22
|
protected environment: Environment;
|
|
23
|
+
private progressBarService?;
|
|
24
24
|
static readonly TRASH_PREFIX = "Trash#";
|
|
25
25
|
static readonly REMOTE_PREFIX = "Remote#";
|
|
26
26
|
private readonly _typePolicies;
|
|
@@ -29,7 +29,7 @@ export declare class EntitiesStorage extends StartableService<EntityStorageMap>
|
|
|
29
29
|
private _dirty;
|
|
30
30
|
private _saving;
|
|
31
31
|
get dirty(): boolean;
|
|
32
|
-
constructor(platform: Platform,
|
|
32
|
+
constructor(platform: Platform, storage: IStorage, environment: Environment, progressBarService?: IProgressBarService, typePolicies?: EntitiesStorageTypePolicies);
|
|
33
33
|
ngOnStart(): Promise<EntityStorageMap>;
|
|
34
34
|
protected ngOnStop(): Promise<void>;
|
|
35
35
|
watchAll<T extends Entity<T>>(entityName: string, variables: {
|
|
@@ -102,7 +102,7 @@ export declare class EntitiesStorage extends StartableService<EntityStorageMap>
|
|
|
102
102
|
protected storeLocally(opts?: {
|
|
103
103
|
skipIfPristine: boolean;
|
|
104
104
|
}): Promise<void>;
|
|
105
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EntitiesStorage, [null, { optional: true; },
|
|
105
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntitiesStorage, [null, null, null, { optional: true; }, { optional: true; }]>;
|
|
106
106
|
static ɵprov: i0.ɵɵInjectableDeclaration<EntitiesStorage>;
|
|
107
107
|
}
|
|
108
108
|
export {};
|
|
@@ -14,9 +14,9 @@ import { AlertController, NavController } from '@ionic/angular';
|
|
|
14
14
|
import { Property } from '../../shared/types';
|
|
15
15
|
import { CanLeave } from '../../shared/guard/component-dirty.guard';
|
|
16
16
|
import { ISelectPeerModalOptions } from '../peer/select-peer.modal';
|
|
17
|
-
import {
|
|
17
|
+
import { IMenuItem } from '../menu/menu.model';
|
|
18
18
|
import * as i0 from "@angular/core";
|
|
19
|
-
export declare const APP_SETTINGS_MENU_ITEMS: InjectionToken<
|
|
19
|
+
export declare const APP_SETTINGS_MENU_ITEMS: InjectionToken<IMenuItem[]>;
|
|
20
20
|
export declare class SettingsPage extends AppForm<LocalSettings> implements OnInit, OnDestroy, CanLeave {
|
|
21
21
|
protected platform: PlatformService;
|
|
22
22
|
protected navController: NavController;
|
|
@@ -33,7 +33,7 @@ export declare class SettingsPage extends AppForm<LocalSettings> implements OnIn
|
|
|
33
33
|
mobile: boolean;
|
|
34
34
|
saving: boolean;
|
|
35
35
|
usageModes: UsageMode[];
|
|
36
|
-
menuItems:
|
|
36
|
+
menuItems: IMenuItem[];
|
|
37
37
|
propertyDefinitions: FormFieldDefinition[];
|
|
38
38
|
propertyDefinitionsByKey: FormFieldDefinitionMap;
|
|
39
39
|
propertyDefinitionsByIndex: {
|
|
@@ -44,7 +44,7 @@ export declare class SettingsPage extends AppForm<LocalSettings> implements OnIn
|
|
|
44
44
|
get accountInheritance(): boolean;
|
|
45
45
|
get isLogin(): boolean;
|
|
46
46
|
get propertiesForm(): UntypedFormArray;
|
|
47
|
-
constructor(injector: Injector, platform: PlatformService, navController: NavController, validatorService: LocalSettingsValidatorService, alertCtrl: AlertController, translate: TranslateService, formBuilder: UntypedFormBuilder, accountService: AccountService, settings: LocalSettingsService, cd: ChangeDetectorRef, network: NetworkService, locales: LocaleConfig[], menuItems?:
|
|
47
|
+
constructor(injector: Injector, platform: PlatformService, navController: NavController, validatorService: LocalSettingsValidatorService, alertCtrl: AlertController, translate: TranslateService, formBuilder: UntypedFormBuilder, accountService: AccountService, settings: LocalSettingsService, cd: ChangeDetectorRef, network: NetworkService, locales: LocaleConfig[], menuItems?: IMenuItem[]);
|
|
48
48
|
ngOnInit(): Promise<void>;
|
|
49
49
|
getPropertyDefinition(index: number): FormFieldDefinition;
|
|
50
50
|
updatePropertyDefinition(index: number): FormFieldDefinition;
|
|
@@ -57,9 +57,9 @@ export declare class SettingsPage extends AppForm<LocalSettings> implements OnIn
|
|
|
57
57
|
}): void;
|
|
58
58
|
showSelectPeerModal(opts?: Partial<ISelectPeerModalOptions>): Promise<void>;
|
|
59
59
|
cancel(event?: Event): Promise<void>;
|
|
60
|
-
close(
|
|
60
|
+
close(_?: Event): Promise<boolean>;
|
|
61
61
|
clearCache(event?: Event): Promise<void>;
|
|
62
|
-
executeAction(event: Event, item:
|
|
62
|
+
executeAction(event: Event, item: IMenuItem): Promise<void>;
|
|
63
63
|
protected getValue(): Promise<LocalSettings>;
|
|
64
64
|
protected getJsonValueToSave(): Promise<any>;
|
|
65
65
|
protected markForCheck(): void;
|
|
@@ -58,11 +58,11 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
58
58
|
readonly dirtySubject: BehaviorSubject<boolean>;
|
|
59
59
|
readonly errorSubject: BehaviorSubject<string>;
|
|
60
60
|
get error(): string;
|
|
61
|
+
set error(error: string);
|
|
61
62
|
/**
|
|
62
63
|
* @deprecated
|
|
63
64
|
*/
|
|
64
65
|
get error$(): Observable<string>;
|
|
65
|
-
set error(error: string);
|
|
66
66
|
selection: SelectionModel<TableElement<T>>;
|
|
67
67
|
permanentSelection: SelectionModel<T>;
|
|
68
68
|
permanentSelectionChangedPrevented: boolean;
|
|
@@ -267,6 +267,7 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
267
267
|
selectRowById(id: number): Promise<boolean>;
|
|
268
268
|
/**
|
|
269
269
|
* Try to select row by data. Will use equals() to find same row's data
|
|
270
|
+
*
|
|
270
271
|
* @param data
|
|
271
272
|
*/
|
|
272
273
|
selectRowByData(data: T): Promise<boolean>;
|
|
@@ -274,7 +275,7 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
274
275
|
moveRow(id: number, direction: number): void;
|
|
275
276
|
ready(opts?: WaitForOptions): Promise<void>;
|
|
276
277
|
waitIdle(opts?: WaitForOptions): Promise<void>;
|
|
277
|
-
openSelectColumnsModal(
|
|
278
|
+
openSelectColumnsModal(_?: Event): Promise<any>;
|
|
278
279
|
trackByFn(index: number, row: TableElement<T>): number;
|
|
279
280
|
doRefresh(event?: CompletableEvent): void;
|
|
280
281
|
getCurrentColumns(): ColumnItem[];
|
|
@@ -285,6 +286,7 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
285
286
|
}): boolean;
|
|
286
287
|
/**
|
|
287
288
|
* Try to select row, by row.id, or by data. WIll use EntityUtils.equals()
|
|
289
|
+
*
|
|
288
290
|
* @param id
|
|
289
291
|
* @param data
|
|
290
292
|
* @protected
|
|
@@ -304,6 +306,7 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
304
306
|
/**
|
|
305
307
|
* Open a row detail view. By default, will to open row detail page.
|
|
306
308
|
* Can be override by subclasses, BUT prefer to subscribe on onOpenRow
|
|
309
|
+
*
|
|
307
310
|
* @param id
|
|
308
311
|
* @param row
|
|
309
312
|
* @protected
|
|
@@ -364,6 +367,12 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
364
367
|
}): void;
|
|
365
368
|
protected getPageSettings<T = any>(propertyName?: string): T;
|
|
366
369
|
protected savePageSettings(value: any, propertyName?: string): Promise<void>;
|
|
370
|
+
/**
|
|
371
|
+
* Initialize the permanent selection model
|
|
372
|
+
*
|
|
373
|
+
* @protected
|
|
374
|
+
*/
|
|
375
|
+
protected initPermanentSelection(): void;
|
|
367
376
|
private listenSortAndPaginationEvents;
|
|
368
377
|
private editRowById;
|
|
369
378
|
private setLoading;
|
|
@@ -376,11 +385,6 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
376
385
|
private listenDatasourceLoading;
|
|
377
386
|
private startCellValueChanges;
|
|
378
387
|
private stopCellValueChanges;
|
|
379
|
-
/**
|
|
380
|
-
* Initialize the permanent selection model
|
|
381
|
-
* @protected
|
|
382
|
-
*/
|
|
383
|
-
private initPermanentSelection;
|
|
384
388
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppTable<any, any, any>, never>;
|
|
385
389
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AppTable<any, any, any>, never, never, { "settingsId": "settingsId"; "debug": "debug"; "i18nColumnPrefix": "i18nColumnPrefix"; "i18nColumnSuffix": "i18nColumnSuffix"; "autoLoad": "autoLoad"; "readOnly": "readOnly"; "inlineEdition": "inlineEdition"; "focusFirstColumn": "focusFirstColumn"; "confirmBeforeDelete": "confirmBeforeDelete"; "confirmBeforeCancel": "confirmBeforeCancel"; "undoableDeletion": "undoableDeletion"; "saveBeforeDelete": "saveBeforeDelete"; "keepEditedRowOnSave": "keepEditedRowOnSave"; "saveBeforeSort": "saveBeforeSort"; "saveBeforeFilter": "saveBeforeFilter"; "propagateRowError": "propagateRowError"; "permanentSelectionAllowed": "permanentSelectionAllowed"; "defaultSortBy": "defaultSortBy"; "defaultSortDirection": "defaultSortDirection"; "defaultPageSize": "defaultPageSize"; "defaultPageSizeOptions": "defaultPageSizeOptions"; "focusColumn": "focusColumn"; "dataSource": "dataSource"; "filter": "filter"; "disabled": "disabled"; "paginator": "paginator"; }, { "onRefresh": "onRefresh"; "onOpenRow": "onOpenRow"; "onNewRow": "onNewRow"; "onStartEditingRow": "onStartEditingRow"; "onConfirmEditCreateRow": "onConfirmEditCreateRow"; "onCancelOrDeleteRow": "onCancelOrDeleteRow"; "onBeforeDeleteRows": "onBeforeDeleteRows"; "onBeforeCancelRows": "onBeforeCancelRows"; "onBeforeSave": "onBeforeSave"; "onAfterDeletedRows": "onAfterDeletedRows"; "onSort": "onSort"; "onDirty": "onDirty"; "onError": "onError"; }, never, never, false>;
|
|
386
390
|
}
|
|
@@ -21,6 +21,7 @@ export declare class TableTestPage extends AppTable<Referential, ReferentialFilt
|
|
|
21
21
|
filterForm: UntypedFormGroup;
|
|
22
22
|
filterCriteriaCount: number;
|
|
23
23
|
groupColumns: string[];
|
|
24
|
+
permanentSelectionAllowed: boolean;
|
|
24
25
|
readonly statusList: readonly import("../../services/model/referential.model").IStatus[];
|
|
25
26
|
readonly statusById: Readonly<import("@sumaris-net/ngx-components").KeyValueType<import("../../services/model/referential.model").IStatus>>;
|
|
26
27
|
readonly columnDefinitions: FormFieldDefinitionMap;
|
|
@@ -43,7 +44,7 @@ export declare class TableTestPage extends AppTable<Referential, ReferentialFilt
|
|
|
43
44
|
}): Promise<boolean>;
|
|
44
45
|
clearControlValue(event: Event, formControl: AbstractControl): boolean;
|
|
45
46
|
applyFilterAndClosePanel(event?: Event): void;
|
|
46
|
-
resetFilter(
|
|
47
|
+
resetFilter(_?: Event): void;
|
|
47
48
|
startTimer(): void;
|
|
48
49
|
stopTimer(): void;
|
|
49
50
|
protected generateData(offset?: number, size?: number): Referential[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const DATE_ISO_PATTERN = "YYYY-MM-DDTHH:mm:ss.SSSZ";
|
|
2
2
|
export declare const DATE_PATTERN = "YYYY-MM-DD";
|
|
3
|
+
export declare const DATE_MATCH_REGEXP: RegExp;
|
|
3
4
|
export declare const DEFAULT_PLACEHOLDER_CHAR = "_";
|
|
4
5
|
export declare const PUBKEY_REGEXP: RegExp;
|
|
5
6
|
export declare const SPACE_PLACEHOLDER_CHAR = "\u2000";
|
|
@@ -16,6 +16,7 @@ export declare class DateUtils {
|
|
|
16
16
|
/**
|
|
17
17
|
* Create a copy of a date, without time fields (always return a new Moment object, or undefined).
|
|
18
18
|
* Same implementation as the Java class Dates.resetTime() (see any SUMARiS like Pod)
|
|
19
|
+
*
|
|
19
20
|
* @param value
|
|
20
21
|
* @param timezone a timezone (see https://momentjs.com/timezone/)
|
|
21
22
|
* @param keepLocalTime if true, only the timezone (and offset) is updated, keeping the local time same. Consequently, it will now point to a different point in time if the offset has changed.
|
|
@@ -26,6 +27,7 @@ export declare class DateUtils {
|
|
|
26
27
|
static isNoTime(value: Moment): boolean;
|
|
27
28
|
/**
|
|
28
29
|
* Test if a date is on the given day of week
|
|
30
|
+
*
|
|
29
31
|
* @param date
|
|
30
32
|
* @param weekday
|
|
31
33
|
* @param timezone
|
|
@@ -21,6 +21,7 @@ export interface CompletableEvent extends Event {
|
|
|
21
21
|
* For example, use the value of 10% for the infinite output event to get called when the user has scrolled
|
|
22
22
|
* 10% from the bottom of the page. Use the value 100px when the scroll is within 100 pixels from the bottom of the page.
|
|
23
23
|
* </p>
|
|
24
|
+
*
|
|
24
25
|
* @param element
|
|
25
26
|
* @param threshold default to '15%'
|
|
26
27
|
*/
|
|
@@ -42,9 +42,11 @@ export declare function addValueInArray(arrayControl: UntypedFormArray, createCo
|
|
|
42
42
|
}): boolean;
|
|
43
43
|
/**
|
|
44
44
|
* Set an array using given default values. Each default value will be pass to the 'createControl()' function
|
|
45
|
+
*
|
|
45
46
|
* @param arrayControl
|
|
46
47
|
* @param createControl
|
|
47
|
-
* @param
|
|
48
|
+
* @param defaultValues
|
|
49
|
+
* @param options
|
|
48
50
|
*/
|
|
49
51
|
export declare function initArrayControlsFromValues(arrayControl: UntypedFormArray, createControl: (value?: any) => AbstractControl, defaultValues: any[], options?: {
|
|
50
52
|
emitEvent?: boolean;
|
|
@@ -82,6 +84,7 @@ export declare function waitWhilePending<T extends {
|
|
|
82
84
|
}>(form: T, opts?: WaitForOptions): Promise<void>;
|
|
83
85
|
/**
|
|
84
86
|
* Wait form is idle (not loading). This need to implement {loading: boolean}
|
|
87
|
+
*
|
|
85
88
|
* @param form
|
|
86
89
|
* @param opts
|
|
87
90
|
*/
|
|
@@ -21,6 +21,7 @@ export declare function arrayGroupBy<T = any, K extends keyof T = any, M extends
|
|
|
21
21
|
/**
|
|
22
22
|
* Remove duplicated value, in array. Will compute a unique key (from given properties, or given function).
|
|
23
23
|
* If propertiesOrKeyFn is nil or undefined, will use all object properties
|
|
24
|
+
*
|
|
24
25
|
* @param values
|
|
25
26
|
* @param propertiesOrKeyFn
|
|
26
27
|
*/
|
|
@@ -25,7 +25,7 @@ export declare class AppHelpModal implements AppHelpModalOptions {
|
|
|
25
25
|
markdownContent: string;
|
|
26
26
|
markdownUrl: string;
|
|
27
27
|
constructor(injector: Injector, viewCtrl: ModalController, platform: PlatformService, settings: LocalSettingsService, translate: TranslateService, cd: ChangeDetectorRef);
|
|
28
|
-
close(
|
|
28
|
+
close(_?: Event): Promise<boolean>;
|
|
29
29
|
markAsLoaded(): void;
|
|
30
30
|
onLoadError(error?: string): void;
|
|
31
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppHelpModal, never>;
|
|
@@ -73,7 +73,7 @@ export declare class AppImageGalleryComponent<T extends Image> implements OnInit
|
|
|
73
73
|
delete(event: Event, row: TableElement<T>, opts?: {
|
|
74
74
|
interactive?: boolean;
|
|
75
75
|
}): Promise<boolean>;
|
|
76
|
-
toggleViewMode(
|
|
76
|
+
toggleViewMode(_?: Event): void;
|
|
77
77
|
trackByFn(index: number, row: TableElement<T>): number;
|
|
78
78
|
editTitle(event: MouseEvent, row: TableElement<T>, cardToolbar: any): Promise<void>;
|
|
79
79
|
protected showCardToolbar(cardToolbar: any): void;
|
|
@@ -130,6 +130,7 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
130
130
|
/**
|
|
131
131
|
* Hack : if we are in a IonModal, it's necessary to move the CdkOverlay container
|
|
132
132
|
* in the IonModal to might keep focus in IonSearchbar.
|
|
133
|
+
*
|
|
133
134
|
* @param panelElement
|
|
134
135
|
* @private
|
|
135
136
|
*/
|
|
@@ -33,5 +33,5 @@ export declare class BadgeDirective extends MatBadge implements AfterViewInit, O
|
|
|
33
33
|
ngOnDestroy(): void;
|
|
34
34
|
private updateView;
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<BadgeDirective, [null, null, null, null, { optional: true; }]>;
|
|
36
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BadgeDirective, "[appBadge], [appBadgeIcon], [appBadgeMatIcon]", never, { "disabled": "
|
|
36
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BadgeDirective, "[appBadge], [appBadgeIcon], [appBadgeMatIcon]", never, { "content": "appBadge"; "disabled": "appBadgeDisabled"; "color": "appBadgeColor"; "size": "appBadgeSize"; "fill": "appBadgeFill"; "hidden": "appBadgeHidden"; "overlap": "appBadgeOverlap"; "position": "appBadgePosition"; "appBadgeColor": "appBadgeColor"; "appBadgeFill": "appBadgeFill"; "appBadgeMatIcon": "appBadgeMatIcon"; "appBadgeIcon": "appBadgeIcon"; "appBadgeHidden": "appBadgeHidden"; "appBadgeOverlap": "appBadgeOverlap"; "appBadgePosition": "appBadgePosition"; }, {}, never, never, false>;
|
|
37
37
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, FormGroupDirective, UntypedFormBuilder, UntypedFormControl } from '@angular/forms';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
-
import { Moment } from 'moment
|
|
4
|
+
import { Moment } from 'moment';
|
|
5
5
|
import { InputElement } from '../../inputs';
|
|
6
6
|
import { FloatLabelType, MatFormFieldAppearance } from '@angular/material/form-field';
|
|
7
7
|
import { DateFilterFn, MatDatepicker, MatDatepickerInputEvent } from '@angular/material/datepicker';
|
|
@@ -74,8 +74,8 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
|
|
|
74
74
|
registerOnChange(fn: any): void;
|
|
75
75
|
registerOnTouched(fn: any): void;
|
|
76
76
|
setDisabledState(isDisabled: boolean): void;
|
|
77
|
-
openDatePicker(event?: Event
|
|
78
|
-
openTimePicker(event?: Event
|
|
77
|
+
openDatePicker(event?: Event, datePicker?: MatDatepicker<any>): void;
|
|
78
|
+
openTimePicker(event?: Event): void;
|
|
79
79
|
focus(): void;
|
|
80
80
|
clear(): void;
|
|
81
81
|
protected _setFormControlName(controlName: string): void;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export declare const fadeInAnimation: import("@angular/animations").AnimationTriggerMetadata;
|
|
2
|
+
export declare const fadeInSlowAnimation: import("@angular/animations").AnimationTriggerMetadata;
|
|
2
3
|
export declare const fadeInOutAnimation: import("@angular/animations").AnimationTriggerMetadata;
|
|
4
|
+
export declare const slideInAnimation: import("@angular/animations").AnimationTriggerMetadata;
|
|
3
5
|
export declare const slideInOutAnimation: import("@angular/animations").AnimationTriggerMetadata;
|
|
4
6
|
export declare const slideUpDownAnimation: import("@angular/animations").AnimationTriggerMetadata;
|
|
@@ -3,6 +3,7 @@ export declare function isESModule<T>(value: any | T): value is {
|
|
|
3
3
|
};
|
|
4
4
|
/**
|
|
5
5
|
* Workaround need for CommonJS library (eg. moment), because of packagr's issue - see https://github.com/ng-packagr/ng-packagr/issues/2215
|
|
6
|
+
*
|
|
6
7
|
* @param commonJSModule
|
|
7
8
|
*/
|
|
8
9
|
export declare function unwrapESModule<T = any>(commonJSModule: T | any): T;
|
|
@@ -21,6 +21,7 @@ export declare function firstNotNilPromise<T = any>(obs: Observable<T>, opts?: F
|
|
|
21
21
|
export declare function chainPromises<T = any>(defers: (() => Promise<any>)[]): Promise<T[]>;
|
|
22
22
|
/**
|
|
23
23
|
* Wait form a predicate return true. This need to implement AppFormUtils.waitWhilePending(), AppFormUtils.waitIdle()
|
|
24
|
+
*
|
|
24
25
|
* @param predicate
|
|
25
26
|
* @param opts
|
|
26
27
|
*/
|
|
@@ -4,7 +4,7 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class TranslateContextPipe implements PipeTransform {
|
|
5
5
|
private translate;
|
|
6
6
|
constructor(translate: TranslateContextService);
|
|
7
|
-
transform(query: string, context?: string, interpolateParams?:
|
|
7
|
+
transform(query: string, context?: string, interpolateParams?: any): string;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<TranslateContextPipe, never>;
|
|
9
9
|
static ɵpipe: i0.ɵɵPipeDeclaration<TranslateContextPipe, "translateContext", false>;
|
|
10
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<TranslateContextPipe>;
|
|
@@ -49,10 +49,12 @@ export declare class InMemoryEntitiesService<T extends IEntity<T, ID>, F = any,
|
|
|
49
49
|
equals(d1: T, d2: T): boolean;
|
|
50
50
|
/**
|
|
51
51
|
* Count data stored by the service (without hidden data).
|
|
52
|
+
*
|
|
52
53
|
* @param opts
|
|
53
54
|
*/
|
|
54
55
|
/**
|
|
55
56
|
* Count data stored by the service (without hidden data).
|
|
57
|
+
*
|
|
56
58
|
* @param opts
|
|
57
59
|
* @deprecated TODO Please rename this getter into visibleCount (and create count = hiddenCount + visibleCount)
|
|
58
60
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BehaviorSubject, Subject, Subscription } from 'rxjs';
|
|
2
2
|
import { IStartableService } from './startable-service.class';
|
|
3
3
|
/**
|
|
4
|
-
* Same as StartableService,
|
|
4
|
+
* Same as StartableService, but with a dataSubject instead of a simple 'data' property
|
|
5
5
|
*/
|
|
6
6
|
export declare abstract class StartableObservableService<T = any, O = any> implements IStartableService<T> {
|
|
7
7
|
readonly dataSubject: BehaviorSubject<T>;
|
|
@@ -4,8 +4,8 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class TranslateContextService {
|
|
5
5
|
protected translate: TranslateService;
|
|
6
6
|
constructor(translate: TranslateService);
|
|
7
|
-
get(key: string | string[], context?: string, interpolateParams?:
|
|
8
|
-
instant(key: string | string[], context?: string, interpolateParams?:
|
|
7
|
+
get(key: string | string[], context?: string, interpolateParams?: any): Observable<any>;
|
|
8
|
+
instant(key: string | string[], context?: string, interpolateParams?: any): any;
|
|
9
9
|
/**
|
|
10
10
|
* Compute contextual i18n keys, using the context as suffix.<br>
|
|
11
11
|
* Suffix can be simple name (like 'aaa' - will return ['<key>.aaa']) or complexe (like 'aaa.bbb' - will return ['<key>.aaa.bbb', '<key>.aaa']
|
|
@@ -4,6 +4,7 @@ export interface IValidatorService<T> extends ValidatorService {
|
|
|
4
4
|
getFormGroup(data?: T): UntypedFormGroup;
|
|
5
5
|
/**
|
|
6
6
|
* Compute errors from a controls
|
|
7
|
+
*
|
|
7
8
|
* @param control any control, or FormGroup, or FormArray
|
|
8
9
|
*/
|
|
9
10
|
getI18nFormErrors(control: AbstractControl): string[];
|
|
@@ -8,10 +8,11 @@ import * as i5 from "./toast/toast.testing.module";
|
|
|
8
8
|
import * as i6 from "./upload-file/testing/upload-file.testing.module";
|
|
9
9
|
import * as i7 from "./image/gallery/testing/gallery.testing.module";
|
|
10
10
|
import * as i8 from "./audio/audio.testing.module";
|
|
11
|
-
import * as i9 from "./storage/storage-explorer.module";
|
|
11
|
+
import * as i9 from "./storage/storage-explorer.testing.module";
|
|
12
|
+
import * as i10 from "../core/menu/testing/menu.testing.module";
|
|
12
13
|
export declare const SHARED_TESTING_PAGES: TestingPage[];
|
|
13
14
|
export declare class SharedTestingModule {
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedTestingModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedTestingModule, never, [typeof i1.CommonModule, typeof i2.IonicModule, typeof i3.TranslateModule, typeof i4.MaterialTestingModule, typeof i5.ToastTestingModule, typeof i6.UploadFileTestingModule, typeof i7.ImageGalleryTestingModule, typeof i8.AudioTestingModule, typeof i9.
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedTestingModule, never, [typeof i1.CommonModule, typeof i2.IonicModule, typeof i3.TranslateModule, typeof i4.MaterialTestingModule, typeof i5.ToastTestingModule, typeof i6.UploadFileTestingModule, typeof i7.ImageGalleryTestingModule, typeof i8.AudioTestingModule, typeof i9.StorageExplorerTestingModule, typeof i10.MenuTestingModule], [typeof i4.MaterialTestingModule, typeof i5.ToastTestingModule, typeof i6.UploadFileTestingModule, typeof i7.ImageGalleryTestingModule, typeof i8.AudioTestingModule, typeof i9.StorageExplorerTestingModule, typeof i10.MenuTestingModule]>;
|
|
16
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedTestingModule>;
|
|
17
18
|
}
|
|
@@ -9,11 +9,11 @@ import { Log, LogUtils } from '../logging/logger.model';
|
|
|
9
9
|
import { MomentDateAdapter } from '@angular/material-moment-adapter';
|
|
10
10
|
import { LogLevel } from '../logging/log-level.model';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
|
-
|
|
12
|
+
interface StorageItemInfo {
|
|
13
13
|
key: string;
|
|
14
14
|
type: 'array' | 'object' | 'string' | 'number';
|
|
15
15
|
total: number;
|
|
16
|
-
}
|
|
16
|
+
}
|
|
17
17
|
export declare const APP_STORAGE_EXPLORER_PROTECTED_KEYS: InjectionToken<string[]>;
|
|
18
18
|
export declare class StorageExplorerComponent implements OnInit {
|
|
19
19
|
protected platform: Platform;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import { TestingPage } from '../testing/tests.page';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
import * as i1 from "./storage-explorer.component";
|
|
4
3
|
import * as i2 from "@ionic/angular";
|
|
5
4
|
import * as i3 from "@angular/common";
|
|
6
|
-
import * as i4 from "@
|
|
7
|
-
import * as i5 from "@
|
|
8
|
-
import * as i6 from "
|
|
9
|
-
import * as i7 from "../
|
|
10
|
-
import * as i8 from "../material/material.module";
|
|
11
|
-
export declare const SHARED_STORAGE_TESTING_PAGES: TestingPage[];
|
|
5
|
+
import * as i4 from "@rx-angular/template/for";
|
|
6
|
+
import * as i5 from "@ngx-translate/core";
|
|
7
|
+
import * as i6 from "../pipes/pipes.module";
|
|
8
|
+
import * as i7 from "../material/material.module";
|
|
12
9
|
export declare class StorageExplorerModule {
|
|
13
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<StorageExplorerModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<StorageExplorerModule, [typeof i1.StorageExplorerComponent], [typeof i2.IonicModule, typeof i3.CommonModule, typeof i4.
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<StorageExplorerModule, [typeof i1.StorageExplorerComponent], [typeof i2.IonicModule, typeof i3.CommonModule, typeof i4.ForModule, typeof i5.TranslateModule, typeof i6.SharedPipesModule, typeof i7.SharedMaterialModule], [typeof i1.StorageExplorerComponent]>;
|
|
15
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<StorageExplorerModule>;
|
|
16
13
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "@angular/router";
|
|
4
|
+
import * as i3 from "./storage-explorer.module";
|
|
5
|
+
export declare class StorageExplorerTestingRoutingModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StorageExplorerTestingRoutingModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<StorageExplorerTestingRoutingModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.StorageExplorerModule], [typeof i2.RouterModule]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<StorageExplorerTestingRoutingModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TestingPage } from '../testing/tests.page';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
import * as i2 from "@angular/router";
|
|
5
|
+
export declare const SHARED_STORAGE_TESTING_PAGES: TestingPage[];
|
|
6
|
+
export declare class StorageExplorerTestingModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StorageExplorerTestingModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<StorageExplorerTestingModule, never, [typeof i1.CommonModule, typeof i2.RouterModule], [typeof i2.RouterModule]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<StorageExplorerTestingModule>;
|
|
10
|
+
}
|
|
@@ -5,7 +5,6 @@ import { Platform } from '@ionic/angular';
|
|
|
5
5
|
import { Environment } from '../../../environments/environment.class';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class StorageService extends StartableService<Storage> implements IStorage<Storage> {
|
|
8
|
-
private platform;
|
|
9
8
|
private storage;
|
|
10
9
|
private environment;
|
|
11
10
|
get driver(): string | undefined;
|
|
@@ -9,6 +9,7 @@ export declare class UploadFileTestingPage {
|
|
|
9
9
|
showPopover(event: Event, opts?: Partial<UploadFilePopoverOptions<any>>): Promise<void>;
|
|
10
10
|
/**
|
|
11
11
|
* Simulate a upload function, with progression
|
|
12
|
+
*
|
|
12
13
|
* @param file
|
|
13
14
|
*/
|
|
14
15
|
uploadFile(file: File): Observable<FileEvent<{
|
|
@@ -44,6 +44,7 @@ export declare class SharedValidators {
|
|
|
44
44
|
}): ValidatorFn;
|
|
45
45
|
/**
|
|
46
46
|
* Check precision. e.g. if precision=0.5 then value=0.6 is invalid, but 1.5 is valid
|
|
47
|
+
*
|
|
47
48
|
* @param precision
|
|
48
49
|
*/
|
|
49
50
|
static precision(precision: number): ValidatorFn;
|
|
@@ -65,6 +66,7 @@ export declare class SharedFormGroupValidators {
|
|
|
65
66
|
static propagateIfDirty(fieldName: string, fieldNameToPropagate: string, valueToPropagate: any): ValidatorFn;
|
|
66
67
|
/**
|
|
67
68
|
* Same as compose, but keep only the first errors (instead of the union)
|
|
69
|
+
*
|
|
68
70
|
* @param validators
|
|
69
71
|
*/
|
|
70
72
|
first(validators: (ValidatorFn | null | undefined)[]): ValidationErrors | null;
|
|
@@ -91,6 +93,7 @@ export declare class SharedAsyncValidators {
|
|
|
91
93
|
private static DEBOUNCE_TIME_VALIDATOR_ID;
|
|
92
94
|
/**
|
|
93
95
|
* Add a debounce time to a validator.
|
|
96
|
+
*
|
|
94
97
|
* @param form
|
|
95
98
|
* @param validatorFn
|
|
96
99
|
* @param opts Use opts.stopSubject to stop the validator, before end
|
|
@@ -103,6 +106,7 @@ export declare class SharedAsyncValidators {
|
|
|
103
106
|
}): ObservableValidatorFn;
|
|
104
107
|
/**
|
|
105
108
|
* Add an async validator, that can be disposed by the returned subscription
|
|
109
|
+
*
|
|
106
110
|
* @param form
|
|
107
111
|
* @param validatorFn the validator or job to execute
|
|
108
112
|
* @param opts
|
|
@@ -197,6 +197,9 @@
|
|
|
197
197
|
"BASIC": "Basic",
|
|
198
198
|
"TOKEN": "Crypto",
|
|
199
199
|
"BASIC_AND_TOKEN": "Basic and crypto"
|
|
200
|
+
},
|
|
201
|
+
"ACCOUNT": {
|
|
202
|
+
"ENABLE_AUTH_TOKENS": "Activer les jetons d'authentifications"
|
|
200
203
|
}
|
|
201
204
|
}
|
|
202
205
|
},
|
|
@@ -667,6 +670,7 @@
|
|
|
667
670
|
"CREATION_DATE": "Creation date",
|
|
668
671
|
"UPDATE_DATE": "Update date",
|
|
669
672
|
"COMMENTS": "Comments",
|
|
673
|
+
"VALUES": "Enums",
|
|
670
674
|
"GROUP_1": "Group 1",
|
|
671
675
|
"GROUP_2": "Group 2",
|
|
672
676
|
"STATUS_ID": "Status"
|
package/src/assets/i18n/en.json
CHANGED
|
@@ -197,6 +197,9 @@
|
|
|
197
197
|
"BASIC": "Basic",
|
|
198
198
|
"TOKEN": "Crypto",
|
|
199
199
|
"BASIC_AND_TOKEN": "Basic and crypto"
|
|
200
|
+
},
|
|
201
|
+
"ACCOUNT": {
|
|
202
|
+
"ENABLE_AUTH_TOKENS": "Enable auth tokens"
|
|
200
203
|
}
|
|
201
204
|
}
|
|
202
205
|
},
|
|
@@ -667,6 +670,7 @@
|
|
|
667
670
|
"CREATION_DATE": "Creation date",
|
|
668
671
|
"UPDATE_DATE": "Update date",
|
|
669
672
|
"COMMENTS": "Comments",
|
|
673
|
+
"VALUES": "Enums",
|
|
670
674
|
"GROUP_1": "Group 1",
|
|
671
675
|
"GROUP_2": "Group 2",
|
|
672
676
|
"STATUS_ID": "Status"
|