@sumaris-net/ngx-components 2.4.82-rc7 → 2.4.82-rc8
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 +0 -3
- package/esm2020/src/app/core/form/entity/entity-editor.class.mjs +34 -25
- package/esm2020/src/app/core/services/account.service.mjs +19 -36
- package/esm2020/src/app/core/services/local-settings.service.mjs +4 -4
- package/esm2020/src/app/core/services/model/config.model.mjs +3 -3
- package/esm2020/src/app/core/table/table-select-columns.component.mjs +1 -1
- package/esm2020/src/app/shared/form/field.component.mjs +11 -15
- package/esm2020/src/app/shared/functions.mjs +4 -1
- package/esm2020/src/app/shared/image/gallery/image-gallery.component.mjs +31 -41
- package/esm2020/src/app/shared/image/gallery/image-gallery.module.mjs +2 -3
- package/esm2020/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +1 -1
- package/esm2020/src/app/shared/material/badge/badge.directive.mjs +110 -128
- package/esm2020/src/app/shared/material/badge/badge.test.mjs +13 -26
- package/esm2020/src/app/shared/material/datetime/material.date.mjs +3 -3
- package/esm2020/src/app/shared/material/datetime/material.dateshort.mjs +3 -3
- package/esm2020/src/app/shared/material/datetime/material.datetime.mjs +2 -2
- package/esm2020/src/app/shared/material/swipe/material.swipe.mjs +33 -43
- package/esm2020/src/app/shared/material/swipe/swipe.module.mjs +2 -3
- package/esm2020/src/app/shared/services/startable-service.class.mjs +6 -1
- package/esm2020/src/app/shared/shared.module.mjs +1 -1
- package/esm2020/src/app/shared/storage/storage-explorer.component.mjs +1 -1
- package/esm2020/src/app/shared/toast/toast.testing.mjs +3 -3
- package/esm2020/src/environments/environment.class.mjs +1 -1
- package/esm2020/src/environments/environment.mjs +6 -5
- package/fesm2015/sumaris-net.ngx-components.mjs +276 -325
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +265 -319
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +8 -8
- package/src/app/core/form/entity/entity-editor.class.d.ts +28 -25
- package/src/app/core/services/account.service.d.ts +0 -2
- package/src/app/shared/functions.d.ts +1 -0
- package/src/app/shared/image/gallery/image-gallery.component.d.ts +17 -14
- package/src/app/shared/material/badge/badge.directive.d.ts +18 -25
- package/src/app/shared/material/badge/badge.test.d.ts +0 -8
- package/src/app/shared/material/swipe/material.swipe.d.ts +12 -12
- package/src/app/shared/services/startable-service.class.d.ts +1 -0
- package/src/environments/environment.class.d.ts +0 -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": "2.4.82-
|
|
4
|
+
"version": "2.4.82-rc8",
|
|
5
5
|
"author": "contact@e-is.pro",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
7
7
|
"readmeFilename": "README.md",
|
|
@@ -10,20 +10,20 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@noble/ed25519": "^1.7.1",
|
|
13
|
-
"@rx-angular/cdk": "^
|
|
14
|
-
"@rx-angular/state": "^
|
|
15
|
-
"@rx-angular/template": "^
|
|
13
|
+
"@rx-angular/cdk": "^1.0.0",
|
|
14
|
+
"@rx-angular/state": "^1.7.0",
|
|
15
|
+
"@rx-angular/template": "^1.0.0",
|
|
16
16
|
"clone": "~2.1.2",
|
|
17
17
|
"tslib": "~2.3.1"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@angular-devkit/build-angular": "~14.2.11",
|
|
21
21
|
"@angular/compiler-cli": "~14.2.12",
|
|
22
|
-
"@apollo/client": "~3.7.
|
|
22
|
+
"@apollo/client": "~3.7.12",
|
|
23
23
|
"@ionic/storage": "~3.0.6",
|
|
24
24
|
"d3": "~7.6.1",
|
|
25
25
|
"localforage": "~1.10.0",
|
|
26
|
-
"rxjs": "^
|
|
26
|
+
"rxjs": "^6.6.7"
|
|
27
27
|
},
|
|
28
28
|
"repository": {
|
|
29
29
|
"type": "git",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"url": "https://gitlab.ifremer.fr/sih-public/sumaris/ngx-sumaris-components/-/issues"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
37
|
-
"node": ">=
|
|
38
|
-
"npm": ">=
|
|
37
|
+
"node": ">= 14.20.0",
|
|
38
|
+
"npm": ">= 8.17.0",
|
|
39
39
|
"yarn": ">= 1.22.0"
|
|
40
40
|
},
|
|
41
41
|
"module": "fesm2015/sumaris-net.ngx-components.mjs",
|
|
@@ -46,6 +46,20 @@ export interface AppErrorWithDetails extends AppError {
|
|
|
46
46
|
export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends IEntityService<T, ID> = IEntityService<T, any>, ID = number> extends AppTabEditor<T, ID, EntityServiceLoadOptions> implements OnInit, OnDestroy, AfterViewInit, IAppEntityEditor {
|
|
47
47
|
protected dataType: new () => T;
|
|
48
48
|
protected dataService?: S;
|
|
49
|
+
data: T;
|
|
50
|
+
defaultBackHref: string;
|
|
51
|
+
historyIcon: {
|
|
52
|
+
icon?: string;
|
|
53
|
+
matIcon?: string;
|
|
54
|
+
};
|
|
55
|
+
$title: Subject<string>;
|
|
56
|
+
onUpdateView: EventEmitter<T>;
|
|
57
|
+
protected readonly dateFormat: DateFormatService;
|
|
58
|
+
protected readonly cd: ChangeDetectorRef;
|
|
59
|
+
protected readonly settings: LocalSettingsService;
|
|
60
|
+
protected readonly environment: Environment;
|
|
61
|
+
protected readonly routerOutlet: IonRouterOutlet;
|
|
62
|
+
protected errorTranslator: FormErrorTranslator;
|
|
49
63
|
private _usageMode;
|
|
50
64
|
private readonly _enableListenChanges;
|
|
51
65
|
private readonly _listenIntervalInSeconds;
|
|
@@ -55,20 +69,6 @@ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends
|
|
|
55
69
|
private readonly _autoUpdateRoute;
|
|
56
70
|
private _autoOpenNextTab;
|
|
57
71
|
private _listenChangesSubscription;
|
|
58
|
-
protected readonly dateFormat: DateFormatService;
|
|
59
|
-
protected readonly cd: ChangeDetectorRef;
|
|
60
|
-
protected readonly settings: LocalSettingsService;
|
|
61
|
-
protected readonly environment: Environment;
|
|
62
|
-
protected readonly routerOutlet: IonRouterOutlet;
|
|
63
|
-
protected errorTranslator: FormErrorTranslator;
|
|
64
|
-
data: T;
|
|
65
|
-
defaultBackHref: string;
|
|
66
|
-
historyIcon: {
|
|
67
|
-
icon?: string;
|
|
68
|
-
matIcon?: string;
|
|
69
|
-
};
|
|
70
|
-
$title: Subject<string>;
|
|
71
|
-
onUpdateView: EventEmitter<T>;
|
|
72
72
|
get usageMode(): UsageMode;
|
|
73
73
|
set usageMode(value: UsageMode);
|
|
74
74
|
get isOnFieldMode(): boolean;
|
|
@@ -80,12 +80,6 @@ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends
|
|
|
80
80
|
ngAfterViewInit(): void;
|
|
81
81
|
ngOnDestroy(): void;
|
|
82
82
|
waitIdle(opts?: WaitForOptions): Promise<void>;
|
|
83
|
-
/**
|
|
84
|
-
* Load data from the snapshot route
|
|
85
|
-
*
|
|
86
|
-
* @protected
|
|
87
|
-
*/
|
|
88
|
-
protected loadFromRoute(): Promise<void>;
|
|
89
83
|
/**
|
|
90
84
|
* Load data from id, using the dataService
|
|
91
85
|
*
|
|
@@ -101,6 +95,7 @@ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends
|
|
|
101
95
|
canUserWrite(data: T, opts?: any): boolean;
|
|
102
96
|
startListenChanges(): void;
|
|
103
97
|
stopListenChanges(): void;
|
|
98
|
+
ready(opts?: WaitForOptions): Promise<void>;
|
|
104
99
|
updateView(data: T | null, opts?: {
|
|
105
100
|
emitEvent?: boolean;
|
|
106
101
|
openTabIndex?: number;
|
|
@@ -128,6 +123,7 @@ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends
|
|
|
128
123
|
/**
|
|
129
124
|
* Save the editor, by calling the dataService.save().
|
|
130
125
|
* Ensure that editor if valid. If not, display an error
|
|
126
|
+
*
|
|
131
127
|
* @param event
|
|
132
128
|
* @param opts
|
|
133
129
|
*/
|
|
@@ -149,13 +145,15 @@ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends
|
|
|
149
145
|
emitEvent?: boolean;
|
|
150
146
|
detailsCssClass?: string;
|
|
151
147
|
}): void;
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
148
|
+
/**
|
|
149
|
+
* Load data from the snapshot route
|
|
150
|
+
*
|
|
151
|
+
* @protected
|
|
152
|
+
*/
|
|
153
|
+
protected loadFromRoute(): Promise<void>;
|
|
157
154
|
/**
|
|
158
155
|
* Return undefined to keep same tab
|
|
156
|
+
*
|
|
159
157
|
* @protected
|
|
160
158
|
*/
|
|
161
159
|
protected computeNextTabIndex(): number | undefined;
|
|
@@ -194,6 +192,11 @@ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends
|
|
|
194
192
|
* @protected
|
|
195
193
|
*/
|
|
196
194
|
protected updateRoute(data: T, queryParams?: any): Promise<boolean>;
|
|
195
|
+
protected abstract registerForms(): any;
|
|
196
|
+
protected abstract computeTitle(data: T): Promise<string>;
|
|
197
|
+
protected abstract setValue(data: T): Promise<void> | void;
|
|
198
|
+
protected abstract get form(): FormGroup;
|
|
199
|
+
protected abstract getFirstInvalidTabIndex(): number;
|
|
197
200
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppEntityEditor<any, any, any>, never>;
|
|
198
201
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AppEntityEditor<any, any, any>, never, never, {}, {}, never, never, false>;
|
|
199
202
|
}
|
|
@@ -13,7 +13,6 @@ import { FormFieldDefinition } from '../../shared/form/field.model';
|
|
|
13
13
|
import { NetworkService } from './network.service';
|
|
14
14
|
import { AuthTokenType } from './network.types';
|
|
15
15
|
import { FileService } from '../../shared/file/file.service';
|
|
16
|
-
import { Referential } from './model/referential.model';
|
|
17
16
|
import { ShowToastOptions } from '../../shared/toast/toasts';
|
|
18
17
|
import { OverlayEventDetail } from '@ionic/core';
|
|
19
18
|
import { ToastController } from '@ionic/angular';
|
|
@@ -86,7 +85,6 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
|
|
|
86
85
|
*/
|
|
87
86
|
isUsageMode(mode: UsageMode): boolean;
|
|
88
87
|
isOnlyGuest(): boolean;
|
|
89
|
-
canUserWriteDataForDepartment(recorderDepartment: Referential | any): boolean;
|
|
90
88
|
register(data: RegisterData): Promise<Account>;
|
|
91
89
|
authenticate(data?: AuthData): Promise<void>;
|
|
92
90
|
login(data: AuthData): Promise<Account>;
|
|
@@ -26,6 +26,7 @@ export declare function arrayGroupBy<T = any, K extends keyof T = any, M extends
|
|
|
26
26
|
*/
|
|
27
27
|
export declare function arrayDistinct<T = any>(values: T[], propertiesOrKeyFn?: string | string[] | ((obj: T) => string)): T[];
|
|
28
28
|
export declare function nullIfUndefined<T>(obj: T | null | undefined): T | null;
|
|
29
|
+
export declare function undefinedIfNull<T>(obj: T | null | undefined): T | undefined;
|
|
29
30
|
export declare function trimEmptyToNull<T>(str: string | null | undefined): string | null;
|
|
30
31
|
export declare function toBoolean(obj: boolean | null | undefined | string, defaultValue?: boolean): boolean;
|
|
31
32
|
export declare function toNumber(obj: number | null | undefined, defaultValue?: number): number;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { AfterContentChecked, ChangeDetectorRef,
|
|
1
|
+
import { AfterContentChecked, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { BehaviorSubject, Subject, Subscription } from 'rxjs';
|
|
3
3
|
import { TableDataSource, TableElement } from '@e-is/ngx-material-table';
|
|
4
4
|
import { Environment } from '../../../../environments/environment.class';
|
|
5
5
|
import { ImageService } from '../image.service';
|
|
6
6
|
import { Image } from '../image.model';
|
|
7
|
-
import { AlertController, IonModal, IonPopover, Platform, PopoverController } from '@ionic/angular';
|
|
7
|
+
import { AlertController, IonModal, IonPopover, IonSlides, Platform, PopoverController } from '@ionic/angular';
|
|
8
8
|
import { CollectionViewer, ListRange } from '@angular/cdk/collections';
|
|
9
9
|
import { TranslateService } from '@ngx-translate/core';
|
|
10
10
|
import { AppColors } from '../../types';
|
|
11
11
|
import { FormGroup } from '@angular/forms';
|
|
12
|
+
import { EventEmitter } from '@angular/core';
|
|
12
13
|
import { PredefinedColors } from '@ionic/core';
|
|
13
|
-
import { Swiper } from 'swiper/types';
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
15
|
export declare type GalleryMode = 'mosaic' | 'list';
|
|
16
|
-
export interface ISwiper
|
|
16
|
+
export interface ISwiper {
|
|
17
17
|
activeIndex: number;
|
|
18
18
|
imagesLoaded: number;
|
|
19
19
|
}
|
|
@@ -35,10 +35,16 @@ export declare class AppImageGalleryComponent<T extends Image> implements OnInit
|
|
|
35
35
|
protected _titleForm: FormGroup;
|
|
36
36
|
protected _titleAutofocus: boolean;
|
|
37
37
|
protected _slidesSubscription: Subscription;
|
|
38
|
-
protected swiperModules: ((opts: any) => void)[];
|
|
39
|
-
protected _swiper: Swiper;
|
|
40
38
|
zoomActive: boolean;
|
|
41
39
|
zoomScale: number;
|
|
40
|
+
sliderOpts: {
|
|
41
|
+
allowSlidePrev: boolean;
|
|
42
|
+
allowSlideNext: boolean;
|
|
43
|
+
zoom: boolean;
|
|
44
|
+
};
|
|
45
|
+
modalSliderOpts: {
|
|
46
|
+
zoom: boolean;
|
|
47
|
+
};
|
|
42
48
|
viewChange: BehaviorSubject<ListRange>;
|
|
43
49
|
cardColor: string | PredefinedColors;
|
|
44
50
|
debug: boolean;
|
|
@@ -57,10 +63,8 @@ export declare class AppImageGalleryComponent<T extends Image> implements OnInit
|
|
|
57
63
|
get enabled(): boolean;
|
|
58
64
|
get rows(): TableElement<T>[];
|
|
59
65
|
get rowCount(): number;
|
|
60
|
-
get activeIndex(): number;
|
|
61
66
|
zoomModal: IonModal;
|
|
62
67
|
titlePopover: IonPopover;
|
|
63
|
-
swiperRef: ElementRef;
|
|
64
68
|
onBeforeDeleteRows: EventEmitter<import("../../events").PromiseEvent<boolean, {
|
|
65
69
|
rows: TableElement<T>[];
|
|
66
70
|
}>>;
|
|
@@ -83,12 +87,11 @@ export declare class AppImageGalleryComponent<T extends Image> implements OnInit
|
|
|
83
87
|
protected getTableUnknownDataSourceError(): Error;
|
|
84
88
|
protected clickRow(row: TableElement<T>, index: number): Promise<void>;
|
|
85
89
|
protected activeSlideIndex: number;
|
|
86
|
-
protected
|
|
87
|
-
protected
|
|
88
|
-
protected
|
|
89
|
-
protected
|
|
90
|
-
protected
|
|
91
|
-
protected slideNext(swiperElement: any): Promise<void>;
|
|
90
|
+
protected initModalSlides(slides: IonSlides): Promise<void>;
|
|
91
|
+
protected zoom(slides: IonSlides, zoomIn: boolean): Promise<void>;
|
|
92
|
+
protected deleteFromModal(event: any, slides: IonSlides): Promise<boolean>;
|
|
93
|
+
protected slidePrev(slides: IonSlides): Promise<void>;
|
|
94
|
+
protected slideNext(slides: IonSlides): Promise<void>;
|
|
92
95
|
protected canDeleteRows(rows: TableElement<T>[], opts?: {
|
|
93
96
|
interactive?: boolean;
|
|
94
97
|
}): Promise<boolean>;
|
|
@@ -1,37 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { MatBadge
|
|
1
|
+
import { ElementRef, NgZone, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
+
import { MatBadge } from '@angular/material/badge';
|
|
3
3
|
import { AppColors } from '../../types';
|
|
4
4
|
import { AriaDescriber } from '@angular/cdk/a11y';
|
|
5
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare type MatBadgeFill = 'clear' | 'solid';
|
|
8
|
-
export declare class BadgeDirective extends MatBadge implements
|
|
7
|
+
export declare class BadgeDirective extends MatBadge implements OnInit, OnDestroy {
|
|
9
8
|
protected el: ElementRef<HTMLElement>;
|
|
10
|
-
|
|
11
|
-
get
|
|
12
|
-
|
|
13
|
-
get
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
get
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
appBadgeFill: MatBadgeFill;
|
|
23
|
-
appBadgeMatIcon: string;
|
|
24
|
-
appBadgeIcon: string;
|
|
25
|
-
appBadgeHidden: BooleanInput;
|
|
26
|
-
appBadgeOverlap: BooleanInput;
|
|
27
|
-
appBadgePosition: MatBadgePosition;
|
|
9
|
+
set appColor(value: AppColors);
|
|
10
|
+
get appColor(): AppColors;
|
|
11
|
+
set fill(value: MatBadgeFill);
|
|
12
|
+
get fill(): MatBadgeFill;
|
|
13
|
+
set matIcon(icon: string);
|
|
14
|
+
set ionIcon(icon: string);
|
|
15
|
+
set hidden(hidden: boolean);
|
|
16
|
+
get hidden(): boolean;
|
|
17
|
+
private _appColor;
|
|
18
|
+
private _fill;
|
|
19
|
+
private _matIcon;
|
|
20
|
+
private _ionIcon;
|
|
28
21
|
private _html;
|
|
22
|
+
private _subscription;
|
|
23
|
+
private _$update;
|
|
29
24
|
constructor(_ngZone: NgZone, el: ElementRef<HTMLElement>, _ariaDescriber: AriaDescriber, _renderer: Renderer2, _animationMode?: string | undefined);
|
|
30
25
|
ngOnInit(): void;
|
|
31
|
-
ngAfterViewInit(): void;
|
|
32
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
33
26
|
ngOnDestroy(): void;
|
|
34
27
|
private updateView;
|
|
35
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<BadgeDirective, [null, null, null, null, { optional: true; }]>;
|
|
36
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BadgeDirective, "[appBadge], [appBadgeIcon], [appBadgeMatIcon]", never, { "disabled": "matBadgeDisabled"; "color": "appBadgeColor"; "size": "appBadgeSize"; "fill": "appBadgeFill"; "
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BadgeDirective, "[appBadge], [appBadgeIcon], [appBadgeMatIcon]", never, { "disabled": "matBadgeDisabled"; "color": "appBadgeColor"; "size": "appBadgeSize"; "fill": "appBadgeFill"; "overlap": "appBadgeOverlap"; "hidden": "appBadgeHidden"; "appColor": "appBadgeColor"; "matIcon": "appBadgeMatIcon"; "ionIcon": "appBadgeIcon"; }, {}, never, never, false>;
|
|
37
30
|
}
|
|
@@ -1,21 +1,13 @@
|
|
|
1
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
2
1
|
import { BehaviorSubject } from 'rxjs';
|
|
3
2
|
import { MatBadgeFill } from './badge.directive';
|
|
4
3
|
import { MatBadgeSize } from '@angular/material/badge';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class MatBadgeTestPage {
|
|
7
|
-
private cd;
|
|
8
|
-
userText: string;
|
|
9
|
-
matBadgeContent: string;
|
|
10
6
|
$icon: BehaviorSubject<string>;
|
|
11
7
|
$size: BehaviorSubject<MatBadgeSize>;
|
|
12
8
|
$fill: BehaviorSubject<MatBadgeFill>;
|
|
13
9
|
$color: BehaviorSubject<string>;
|
|
14
10
|
$hidden: BehaviorSubject<boolean>;
|
|
15
|
-
$overlap: BehaviorSubject<boolean>;
|
|
16
|
-
constructor(cd: ChangeDetectorRef);
|
|
17
|
-
onInputChanged(event: any): void;
|
|
18
|
-
onMatBadgeContentChanged(event: any): void;
|
|
19
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatBadgeTestPage, never>;
|
|
20
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatBadgeTestPage, "mat-badge-test", never, {}, {}, never, never, false>;
|
|
21
13
|
}
|
|
@@ -4,8 +4,8 @@ import { BehaviorSubject, Observable } from 'rxjs';
|
|
|
4
4
|
import { InputElement, selectInputContent } from '../../inputs';
|
|
5
5
|
import { EqualsFn, DisplayFn } from '../../form/field.model';
|
|
6
6
|
import { FloatLabelType, MatFormFieldAppearance } from '@angular/material/form-field';
|
|
7
|
+
import { IonSlides } from '@ionic/angular';
|
|
7
8
|
import { MatButton } from '@angular/material/button';
|
|
8
|
-
import { Swiper } from 'swiper/types';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class MatSwipeField implements OnInit, InputElement, OnDestroy, ControlValueAccessor {
|
|
11
11
|
protected cd: ChangeDetectorRef;
|
|
@@ -17,13 +17,14 @@ export declare class MatSwipeField implements OnInit, InputElement, OnDestroy, C
|
|
|
17
17
|
private _itemsSubscription;
|
|
18
18
|
private _writing;
|
|
19
19
|
private _tabindex;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
previousDisabled: boolean;
|
|
21
|
+
nextDisabled: boolean;
|
|
22
|
+
showSlides: boolean;
|
|
23
|
+
$items: BehaviorSubject<any[]>;
|
|
24
|
+
$loaded: BehaviorSubject<boolean>;
|
|
25
|
+
slidesOptions: {
|
|
26
|
+
speed: 100;
|
|
27
|
+
};
|
|
27
28
|
logPrefix: string;
|
|
28
29
|
formControl: UntypedFormControl;
|
|
29
30
|
formControlName: string;
|
|
@@ -48,7 +49,7 @@ export declare class MatSwipeField implements OnInit, InputElement, OnDestroy, C
|
|
|
48
49
|
blurred: EventEmitter<FocusEvent>;
|
|
49
50
|
focused: EventEmitter<FocusEvent>;
|
|
50
51
|
fakeInput: ElementRef;
|
|
51
|
-
|
|
52
|
+
slides: IonSlides;
|
|
52
53
|
prevButton: MatButton;
|
|
53
54
|
nextButton: MatButton;
|
|
54
55
|
get value(): any;
|
|
@@ -73,16 +74,15 @@ export declare class MatSwipeField implements OnInit, InputElement, OnDestroy, C
|
|
|
73
74
|
next(): void;
|
|
74
75
|
reachStart(reached: boolean): void;
|
|
75
76
|
reachEnd(reached: boolean): void;
|
|
76
|
-
|
|
77
|
+
slidesLoaded(): void;
|
|
77
78
|
slideChanged(): void;
|
|
78
|
-
private lockSwipes;
|
|
79
79
|
private loadItems;
|
|
80
80
|
private checkIfTouched;
|
|
81
81
|
private markForCheck;
|
|
82
82
|
private updateSlides;
|
|
83
83
|
private slideTo;
|
|
84
84
|
private updateButtons;
|
|
85
|
-
|
|
85
|
+
getSlides(): Promise<IonSlides>;
|
|
86
86
|
ready(): Promise<void>;
|
|
87
87
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatSwipeField, [null, { optional: true; }]>;
|
|
88
88
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatSwipeField, "mat-swipe-field", never, { "logPrefix": "logPrefix"; "formControl": "formControl"; "formControlName": "formControlName"; "floatLabel": "floatLabel"; "appearance": "appearance"; "placeholder": "placeholder"; "debug": "debug"; "required": "required"; "mobile": "mobile"; "clearable": "clearable"; "equals": "equals"; "displayWith": "displayWith"; "displayAttributes": "displayAttributes"; "appAutofocus": "appAutofocus"; "classList": "class"; "tabindex": "tabindex"; "items": "items"; }, { "onClick": "click"; "blurred": "blur"; "focused": "focus"; }, never, never, false>;
|
|
@@ -5,6 +5,7 @@ export interface IStartableService<T = any> {
|
|
|
5
5
|
stop(): Promise<void>;
|
|
6
6
|
ready(): Promise<T>;
|
|
7
7
|
}
|
|
8
|
+
export declare function isStartableService(data: any): data is IStartableService;
|
|
8
9
|
export declare abstract class StartableService<T = any, O = any> implements IStartableService<T> {
|
|
9
10
|
readonly startSubject: Subject<T>;
|
|
10
11
|
readonly stopSubject: Subject<void>;
|